Board index » Visual Studio » MFC static DLL Export to Win32 app?

MFC static DLL Export to Win32 app?

Visual Studio180
I would like to export mfc derived classes such as CDialogs in a regular DLL

(statically linked to MFC) to a plain Win32 application.

Or to rephrase this question, if I have an app that uses MFC, instead of

dynamically linking to a MFC lib, can I dynamically link to a DLL, that is

already statically linked to MFC?



Because of redist issues, I need to statically link to MFC. I presently

have several apps, whose overlapping functionality I'd like to consolidate

into a single DLL. I understand that there are Extension DLLs, but this

doesn't help me because it seems to require dynamic linking to MFC for both

DLL and app.



TIA



Francis


-
 

Re:MFC static DLL Export to Win32 app?

Quote
Or to rephrase this question, if I have an app that uses MFC, instead of

dynamically linking to a MFC lib, can I dynamically link to a DLL, that is

already statically linked to MFC?



Francis,



You should be able to - providing that the interfaces between your

EXE/DLL don't involve MFC classes or anything that requires a common

shared (DLL) between them.



Dave

--

MVP VC++ FAQ: www.mvps.org/vcfaq">www.mvps.org/vcfaq

-