Click here to Skip to main content
15,888,984 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionExtracting numbers from a year Pin
Titan905-Mar-06 13:05
Titan905-Mar-06 13:05 
AnswerRe: Extracting numbers from a year Pin
Michael Dunn5-Mar-06 13:22
sitebuilderMichael Dunn5-Mar-06 13:22 
AnswerRe: Extracting numbers from a year Pin
PJ Arends5-Mar-06 13:31
professionalPJ Arends5-Mar-06 13:31 
GeneralRe: Extracting numbers from a year Pin
Titan905-Mar-06 15:26
Titan905-Mar-06 15:26 
QuestionUsing .lib vs. .dll Pin
Eikthrynir5-Mar-06 12:12
Eikthrynir5-Mar-06 12:12 
AnswerRe: Using .lib vs. .dll Pin
Jörgen Sigvardsson5-Mar-06 12:44
Jörgen Sigvardsson5-Mar-06 12:44 
GeneralRe: Using .lib vs. .dll Pin
John R. Shaw5-Mar-06 16:08
John R. Shaw5-Mar-06 16:08 
AnswerRe: Using .lib vs. .dll Pin
Tim Smith5-Mar-06 14:05
Tim Smith5-Mar-06 14:05 
Depending on how they are linked, DLLs can cause problems with such things as memory allocations. When a DLL is linked to CRTL statically, then it will use a different heap than your program. Or if the DLL is linked dynamically to a different version of CRTL then there will be problems.

Also, DLLs actually increase blot for most programs instead of decrease it. When working with LIB files, compiliation modules that are not required will not be linked into the EXE. However, with a DLL, if you EXE only needs a small portion of the code in the DLL, then the DLL version will be larger.

If you aren't having to modify the DLL a lot, using a DLL will improve link times since the code in the DLL won't need to be relinked everytime you rebuild the EXE.

If you have more than one EXE that uses the code, then in the long run, a DLL might reduce the total distribution since since each EXE doesn't contain a copy of the same code.

With many CPP classes, they will fail to operate properly if they are defined in a DLL and used in the EXE. Often the problem is with global variables that aren't properly exported and thus any code in the EXE will access the wrong global variable. With was a problem with the VC6 version of std::map.

There are more issues, but that I what I could think of off the top of my head.

Tim Smith

I'm going to patent thought. I have yet to see any prior art.
QuestionOpenGL MFC Pin
braveheartkenya5-Mar-06 11:14
braveheartkenya5-Mar-06 11:14 
AnswerRe: OpenGL MFC Pin
Steve Echols5-Mar-06 12:28
Steve Echols5-Mar-06 12:28 
Questionproblem calling NtQuerySystemInformation Pin
gamitech5-Mar-06 8:18
gamitech5-Mar-06 8:18 
QuestionCFileDialog Resource Pin
MON2055-Mar-06 6:26
MON2055-Mar-06 6:26 
AnswerRe: CFileDialog Resource Pin
Naveen5-Mar-06 16:10
Naveen5-Mar-06 16:10 
GeneralRe: CFileDialog Resource Pin
MON2055-Mar-06 20:03
MON2055-Mar-06 20:03 
Question2 classes Pin
Sam 20065-Mar-06 5:08
Sam 20065-Mar-06 5:08 
AnswerRe: 2 classes Pin
darkelv5-Mar-06 5:14
darkelv5-Mar-06 5:14 
AnswerRe: 2 classes Pin
Michael Dunn5-Mar-06 6:20
sitebuilderMichael Dunn5-Mar-06 6:20 
Answersolution Pin
Sam 20065-Mar-06 6:24
Sam 20065-Mar-06 6:24 
GeneralRe: solution Pin
John R. Shaw5-Mar-06 14:30
John R. Shaw5-Mar-06 14:30 
GeneralRe: solution Pin
Divyang Mithaiwala5-Mar-06 17:23
Divyang Mithaiwala5-Mar-06 17:23 
QuestionDisplaying OpenGL terrain in MFC Pin
amanoullah5-Mar-06 4:32
amanoullah5-Mar-06 4:32 
QuestionOverloaded functions in DLL Pin
Eikthrynir5-Mar-06 2:59
Eikthrynir5-Mar-06 2:59 
AnswerRe: Overloaded functions in DLL Pin
Gary R. Wheeler5-Mar-06 3:45
Gary R. Wheeler5-Mar-06 3:45 
AnswerRe: Overloaded functions in DLL Pin
Michael Dunn5-Mar-06 6:25
sitebuilderMichael Dunn5-Mar-06 6:25 
Questioninteger to string? Pin
Pacificat0r5-Mar-06 2:02
Pacificat0r5-Mar-06 2:02 

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.