Please help for generating exe file!
-
Hi, I don't want to see so many files, and it is not convenient to take so many files to my friends. So how can I generate a single .exe file from several files (with extension .exe and .dll) under "Debug" directory? Of course, it must work. :) it is a win32 console application.
-
Hi, I don't want to see so many files, and it is not convenient to take so many files to my friends. So how can I generate a single .exe file from several files (with extension .exe and .dll) under "Debug" directory? Of course, it must work. :) it is a win32 console application.
have you try to generate a release version?
-
Hi, I don't want to see so many files, and it is not convenient to take so many files to my friends. So how can I generate a single .exe file from several files (with extension .exe and .dll) under "Debug" directory? Of course, it must work. :) it is a win32 console application.
Which DLLs are you linking against? If it's the C library and the MFC library, you can change your linker <edit>settings</edit> to link to them statically, rather than dynamically.
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
-
Which DLLs are you linking against? If it's the C library and the MFC library, you can change your linker <edit>settings</edit> to link to them statically, rather than dynamically.
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
the dll I want to link is built by another project of the same solution.
-
the dll I want to link is built by another project of the same solution.
The only reasonable way you can include it in your executable is to build it as a static library rather than a DLL, and link to it statically instead of dynamically.
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
-
have you try to generate a release version?
I tried just now, result is the same. the project generate a the .exe file, but I need a dll which generate by another project to run with it, and I must set the two project output to the same outputDir.
-
The only reasonable way you can include it in your executable is to build it as a static library rather than a DLL, and link to it statically instead of dynamically.
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
Do you mean I should use dllimport statements in my source?
-
Do you mean I should use dllimport statements in my source?
Huh? No. Recompile your DLL as a static library - change its project settings to compile as a static library rather than a DLL.
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"