|
-
February 7th, 2010, 03:16 AM
#1
Why is my release exe 32 kb with only 14 lines of code?
Code:
#include < windows.h >
#include < string >
using namespace std;
void alert( const string& title, const string& message )
{
MessageBox( NULL, message.c_str(), title.c_str(), MB_OK | MB_ICONINFORMATION );
}
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd )
{
alert("Okay", "Working!");
return 0;
}
I just downgraded from MSVC++2008, which had my release exe 33kb with around 1000 or more lines of code, Im trying to learn how to use MSVC++6.0 and its giving me such a hard time with everything, I chose active config to release and hit build, and the exe in the folder is 32 kb with only this.
Edit: Apparently 2008 strips unused functions and discards code and things from header files, any way to do this in 2006? Should I try mingw for stripping?
Last edited by Craisins; February 7th, 2010 at 05:48 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|