Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAttachments by FTP! Pin
Masoud Samimi3-Jan-01 0:16
Masoud Samimi3-Jan-01 0:16 
GeneralRe: Q: Sending an e-mail programatically? Pin
Colin J Davies3-Jan-01 7:54
Colin J Davies3-Jan-01 7:54 
QuestionQ: Does anybody know about VC++ mailing discussion lists? Pin
Bartosz Lizak17-Dec-00 21:14
Bartosz Lizak17-Dec-00 21:14 
AnswerRe: Q: Does anybody know about VC++ mailing discussion lists? Pin
Anders Molin18-Dec-00 1:22
professionalAnders Molin18-Dec-00 1:22 
GeneralRe: Q: Does anybody know about VC++ mailing discussion lists? Pin
John Aspras18-Dec-00 3:35
John Aspras18-Dec-00 3:35 
GeneralRe: Q: Does anybody know about VC++ mailing discussion lists? Pin
NormDroid18-Dec-00 4:16
professionalNormDroid18-Dec-00 4:16 
GeneralStatically compiling in Visual C++ Pin
17-Dec-00 13:10
suss17-Dec-00 13:10 
GeneralRe: Statically compiling in Visual C++ Pin
Jonathan Gilligan17-Dec-00 14:40
Jonathan Gilligan17-Dec-00 14:40 
What you want to do here is to use depends.exe, which comes with Visual Studio (You don't mention what version of VC++ you have, but I am pretty sure that it comes with VC++ Pro and above). Depends.exe is also part of the Platform SDK (http://msdn.microsoft.com/downloads/c-frame.htm?/downloads/sdks/platform/platform.asp).

If you run depends on your executable image, it will list which external dlls your executable depends on to run. You will, of course, see several core windows dlls (such as gdi32.dll, kernel32.dll, etc.) but what you want to look out for are msvc*.dll, mfc*.dll, and atl*.dll. If you see these, you have not succeeded in completely statically linking your program.

If you can't find depends.exe, go to the command line and
dumpbin /imports myprog.dll | find /i ".DLL"

This will give you a list of all dlls your program imports functions from. Look for the same things as with depends, above.

Nonetheless, this is all terribly risky, running code for the first time on an untested machine. Have a backup plan in case the program won't run. I recently went to a colloquium given by a nationally known expert on computer drug design and he had to give his presentation on a chalkboard because the projection system didn't work well when plugged into his laptop and the version of PowerPoint on the desktop machine in the lectern was incompatible with the version of PowerPoint on his laptop, so he couldn't transfer the presentation. Great presentation, but I think he could have used some of his designer nonsteroidal anti-inflammatory drugs (a category of drugs like aspirin, acetominophen, ibuprofen) by the time he was through.

He was allying himself to science, for what was science but the absence of prejudice backed by the presence of money? --- Henry James, The Golden Bowl
GeneralRe: Statically compiling in Visual C++ Pin
Erik Funkenbusch17-Dec-00 16:25
Erik Funkenbusch17-Dec-00 16:25 
GeneralRe: Statically compiling in Visual C++ Pin
l a u r e n21-Dec-00 19:56
l a u r e n21-Dec-00 19:56 
GeneralTrying to resize buttons in a toolbar..... Pin
Christian Graus17-Dec-00 11:03
protectorChristian Graus17-Dec-00 11:03 
GeneralCListCtrl Questions Pin
17-Dec-00 10:52
suss17-Dec-00 10:52 
GeneralRe: CListCtrl Questions Pin
Michael Dunn17-Dec-00 16:38
sitebuilderMichael Dunn17-Dec-00 16:38 
GeneralRe: CListCtrl Questions // initializing varaibles Pin
Julien21-Dec-00 11:27
Julien21-Dec-00 11:27 
GeneralWin Media Encoder/Format SDK Pin
Roger17-Dec-00 5:43
Roger17-Dec-00 5:43 
GeneralSystem Wide Dll Pin
17-Dec-00 4:20
suss17-Dec-00 4:20 
GeneralRe: System Wide Dll Pin
Julien21-Dec-00 11:44
Julien21-Dec-00 11:44 
GeneralWindow DLL to detect wm_message of an active window Pin
16-Dec-00 22:32
suss16-Dec-00 22:32 
GeneralWindow DLL to detect wm_message of an active window Pin
16-Dec-00 22:31
suss16-Dec-00 22:31 
GeneralFAXing from MFC Pin
Brad Bruce16-Dec-00 10:37
Brad Bruce16-Dec-00 10:37 
Questionmodify MessageBox? Pin
15-Dec-00 23:57
suss15-Dec-00 23:57 
AnswerRe: modify MessageBox? Pin
Masoud Samimi16-Dec-00 0:39
Masoud Samimi16-Dec-00 0:39 
AnswerRe: modify MessageBox? Pin
Masoud Samimi16-Dec-00 13:16
Masoud Samimi16-Dec-00 13:16 
Generalcin with passwords Pin
Alvaro Mendez15-Dec-00 12:03
Alvaro Mendez15-Dec-00 12:03 
QuestionHow to avoid problems caused by moving a window? Pin
Joan M15-Dec-00 10:09
professionalJoan M15-Dec-00 10:09 

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.