CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    May 2002
    Location
    Tournai, Belgium
    Posts
    8

    How to build an application with static DLL in VC++

    How to build an application with static DLL
    in VC6.0 It was Project>Project Setting>StaticDLL

    But In VC7.0 ???

    Thx

  2. #2
    Join Date
    May 2002
    Posts
    1,798
    The MFC Application Wizard offers you the option of statically linking the MFC Library or using the 'Shared' dll. Choose static linking.

    A real interesting problem is that some machines will not have certain system files (i.e., Windows 95/98 ?). What I have done in the past is to build the program using the dynamic linking because it compiles faster, then when I'm ready to compile the Release version, set the Programs/Settings to the static library so that the finished product has all the current MFC stuff in it. That way you avoid messing arround with registering MFCxx.dll on the users machine.

    But what about C++.NET. Is there any way of changing to static library linking once youve configured for the dynamic link library?

    Hope this helps.
    mpliam

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured