|
-
April 12th, 1999, 10:26 AM
#1
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
-
April 12th, 1999, 04:31 PM
#2
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
-
April 15th, 1999, 07:20 AM
#3
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
-
April 15th, 1999, 08:51 AM
#4
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
-
August 12th, 1999, 04:56 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|