Click here to Skip to main content
15,893,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Exe not running Pin
Try18-Jan-07 3:21
Try18-Jan-07 3:21 
AnswerRe: Exe not running Pin
prasad_som18-Jan-07 3:39
prasad_som18-Jan-07 3:39 
QuestionRe: Exe not running Pin
David Crow18-Jan-07 4:22
David Crow18-Jan-07 4:22 
AnswerRe: Exe not running Pin
David Crow18-Jan-07 2:48
David Crow18-Jan-07 2:48 
AnswerRe: Exe not running Pin
malaugh18-Jan-07 7:02
malaugh18-Jan-07 7:02 
GeneralRe: Exe not running Pin
David Crow19-Jan-07 2:17
David Crow19-Jan-07 2:17 
GeneralRe: Exe not running Pin
malaugh21-Jan-07 12:59
malaugh21-Jan-07 12:59 
GeneralRe: Exe not running Pin
David Crow22-Jan-07 3:04
David Crow22-Jan-07 3:04 
malaugh wrote:
If you use static linking, then you can run the program on the other machine without the other machine needing the DLLs, just copy across the exe.


One of the most common problems with statically linked DLLs is that the version of MFC they linked with assumed a latest-version of some other DLL, and when that DLL is not installed, either their program can't load, or if it does, it ends up with the wrong version of the other DLL and crashes or otherwise malfuctions. Common controls, Common Dialogs, and OLE are the most common points of mismatch. And there's nothing that can be done other than doing a proper install.

There are about a dozen versions of MFC42.DLL, and while most of them are backward compatible, you cannot link something with a modern MFC42.DLL and expect it to work with an older one. MFC is rarely the key problem; a new version of MFC42.LIB assumes contemporary versions of a lot of other DLLs, such as common controls, OLE, COM, etc. and therefore static linking has done nothing other than increase the DLL size but not solve any problems; and you cannot use such a DLL with any MFC executable anyway, so it doesn't do any good for distributing DLLs.


"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

"Judge not by the eye but by the heart." - Native American Proverb


AnswerRe: Exe not running Pin
Mark Salsbery18-Jan-07 8:50
Mark Salsbery18-Jan-07 8:50 
QuestionChanging the System Menu (CALL A DIALOG) [modified] Pin
JennK18-Jan-07 1:45
JennK18-Jan-07 1:45 
AnswerRe: Changing the System Menu (CALL A DIALOG) Pin
toxcct18-Jan-07 1:56
toxcct18-Jan-07 1:56 
JokeRe: Changing the System Menu (CALL A DIALOG) Pin
jhwurmbach18-Jan-07 2:29
jhwurmbach18-Jan-07 2:29 
GeneralRe: Changing the System Menu (CALL A DIALOG) Pin
toxcct18-Jan-07 2:36
toxcct18-Jan-07 2:36 
AnswerRe: Changing the System Menu (CALL A DIALOG) Pin
#realJSOP18-Jan-07 2:35
mve#realJSOP18-Jan-07 2:35 
GeneralRe: Changing the System Menu (CALL A DIALOG) Pin
JennK18-Jan-07 23:26
JennK18-Jan-07 23:26 
AnswerRe: Changing the System Menu (CALL A DIALOG) Pin
David Crow18-Jan-07 2:50
David Crow18-Jan-07 2:50 
GeneralRe: Changing the System Menu (CALL A DIALOG) Pin
JennK18-Jan-07 23:30
JennK18-Jan-07 23:30 
GeneralRe: Changing the System Menu (CALL A DIALOG) Pin
David Crow19-Jan-07 2:15
David Crow19-Jan-07 2:15 
GeneralRe: Changing the System Menu (CALL A DIALOG) Pin
JennK21-Jan-07 23:35
JennK21-Jan-07 23:35 
GeneralRe: Changing the System Menu (CALL A DIALOG) Pin
David Crow22-Jan-07 2:45
David Crow22-Jan-07 2:45 
GeneralRe: Changing the System Menu (CALL A DIALOG) Pin
JennK22-Jan-07 4:57
JennK22-Jan-07 4:57 
GeneralRe: Changing the System Menu (CALL A DIALOG) Pin
David Crow22-Jan-07 5:20
David Crow22-Jan-07 5:20 
GeneralRe: Changing the System Menu (CALL A DIALOG) Pin
JennK22-Jan-07 22:05
JennK22-Jan-07 22:05 
Questioncalloc() Pin
manu_220518-Jan-07 1:34
manu_220518-Jan-07 1:34 
AnswerRe: calloc() Pin
toxcct18-Jan-07 1:41
toxcct18-Jan-07 1:41 

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.