Click to See Complete Forum and Search --> : MFC-stat.-linked .libs with MFC-dll- linked Apps?!
Ronny Guenther
April 12th, 1999, 10:26 AM
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
mdwilliams
April 12th, 1999, 04:31 PM
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
Ronny Guenther
April 15th, 1999, 07:20 AM
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
April 15th, 1999, 08:51 AM
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
August 12th, 1999, 04:56 AM
yes it is possible!
after finish coding change in " project - setting" th option to your option
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.