CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 1999
    Location
    Germany
    Posts
    37

    MFC-stat.-linked .libs with MFC-dll- linked Apps?!

    Just out of interest:

    Is it possible to link a library which is configured
    to use MFC statically together with an application
    which uses MFC as DLL?!

    Regards

    Ronny


  2. #2
    Join Date
    May 1999
    Posts
    19

    Re: MFC-stat.-linked .libs with MFC-dll- linked Apps?!

    Sure... Your DLL that statically links MFC will just have its own copies of some of the MFC classes (which will increase its size).

    -- MDWilliams



  3. #3
    Join Date
    Apr 1999
    Location
    Germany
    Posts
    37

    Re: MFC-stat.-linked .libs with MFC-dll- linked Apps?!

    Note: With .libs I meant real .LIB - Libraries that use MFC also as .LIB. Can they
    be linked with apps that use MFC as DLL instead ?

    Ronny


  4. #4
    Guest

    Re: MFC-stat.-linked .libs with MFC-dll- linked Apps?!

    If the library you wish to link with is a dynamic library, it can be statically linked with MFC and an application that links dynamically with MFC can link with this library. It is not a sound architecture, but it does work.
    If the library you wish to link with is a static library, then this library can only be linked with applications that use MFC the same way. If you try to link with an application that uses MFC differently, you will get a ton of link error messages, referring to multiply defined symbols.

    Chris


  5. #5
    Guest

    Re: MFC-stat.-linked .libs with MFC-dll- linked Apps?!

    yes it is possible!
    after finish coding change in " project - setting" th option to your option


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