Click here to Skip to main content
15,918,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: global mouse capture Pin
Joan M28-Jan-03 21:26
professionalJoan M28-Jan-03 21:26 
GeneralRe: global mouse capture Pin
Moak28-Jan-03 21:57
Moak28-Jan-03 21:57 
GeneralRe: global mouse capture Pin
Roger Allen29-Jan-03 1:10
Roger Allen29-Jan-03 1:10 
GeneralRe: global mouse capture Pin
Member 10559029-Jan-03 13:14
Member 10559029-Jan-03 13:14 
GeneralDLL class based on pure virtual base class not in DLL Pin
rex66628-Jan-03 15:02
rex66628-Jan-03 15:02 
GeneralRe: DLL class based on pure virtual base class not in DLL Pin
Alvaro Mendez28-Jan-03 16:38
Alvaro Mendez28-Jan-03 16:38 
GeneralRe: DLL class based on pure virtual base class not in DLL Pin
rex66628-Jan-03 16:51
rex66628-Jan-03 16:51 
GeneralRe: DLL class based on pure virtual base class not in DLL Pin
Alvaro Mendez28-Jan-03 18:09
Alvaro Mendez28-Jan-03 18:09 
If there's massive amounts of code in your base class, then it's best to build it into one module, so that it's easier to maintain -- when it comes time to change something, all you need to rebuild is that one module.

In your case, you can certainly go with putting the code for the base class inside the application (EXE) and exporting the class. That will generate a LIB file which you can then use when linking your DLLs. Thus, your DLLs will depend on the EXE and your EXE will depend on the DLLs -- a mutual dependency. Since your EXE is already running when it loads the DLLs, the DLLs will just use the base class code right out of it and they won't load another version of the EXE.

I've done this myself in the past and it's worked great. Instead of putting the code for the base class into yet another DLL (which is another option), you can just export it right out of the main app.

Regards,
Alvaro


All you need in this life is ignorance and confidence, and then success is sure. -- Mark Twain
GeneralCovert Hex value to string Pin
Paul Farry28-Jan-03 15:02
professionalPaul Farry28-Jan-03 15:02 
Generalstr.Format("%.02X",bit[i]) Pin
whelk28-Jan-03 16:08
whelk28-Jan-03 16:08 
Generalstrange problem Pin
MemLeak28-Jan-03 10:53
MemLeak28-Jan-03 10:53 
GeneralRe: strange problem Pin
AlexO28-Jan-03 11:10
AlexO28-Jan-03 11:10 
GeneralNumber of days between two days Pin
Anton A. Loukine28-Jan-03 10:29
Anton A. Loukine28-Jan-03 10:29 
GeneralRe: Number of days between two days Pin
Tim Smith28-Jan-03 10:33
Tim Smith28-Jan-03 10:33 
GeneralRe: Number of days between two days Pin
Alvaro Mendez28-Jan-03 11:45
Alvaro Mendez28-Jan-03 11:45 
GeneralLet's complicate the matter a bit ... Pin
Anton A. Loukine29-Jan-03 3:26
Anton A. Loukine29-Jan-03 3:26 
GeneralRe: Let's complicate the matter a bit ... Pin
Alvaro Mendez29-Jan-03 4:24
Alvaro Mendez29-Jan-03 4:24 
QuestionON_COMMAND for a dynamic menu? Pin
ns28-Jan-03 10:07
ns28-Jan-03 10:07 
AnswerRe: ON_COMMAND for a dynamic menu? Pin
ns28-Jan-03 11:23
ns28-Jan-03 11:23 
GeneralProperty Pages and Buttons Pin
John W Hagen28-Jan-03 10:03
John W Hagen28-Jan-03 10:03 
GeneralRe: Property Pages and Buttons Pin
Member 10559028-Jan-03 18:19
Member 10559028-Jan-03 18:19 
GeneralRe: Property Pages and Buttons Pin
Debs29-Jan-03 0:24
Debs29-Jan-03 0:24 
GeneralRe: Property Pages and Buttons Pin
John W Hagen29-Jan-03 1:14
John W Hagen29-Jan-03 1:14 
GeneralRe: Property Pages and Buttons Pin
John W Hagen29-Jan-03 1:16
John W Hagen29-Jan-03 1:16 
GeneralUsing Microsoft C++ 6.0 instead of using old C Compiler... Pin
IrishSonic28-Jan-03 9:47
IrishSonic28-Jan-03 9:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.