Click to See Complete Forum and Search --> : Compiler Optimizations
GameDeveloper
July 29th, 1999, 06:49 PM
Help Me!
Why are all my MfcAppWizard generated Dialog Apps
6.5 megs! In release mode they are only 5.5 megs!
How come in VB they are only 100K?!? Is there any
way to fix this?
--doyoumoo@hotmail.com
"I do not know what weapons they will use in
World War III, but in World War IV they will
use sticks and stones" --Einstein
Paul Burns
July 30th, 1999, 12:30 AM
Sounds like you're using static linkage. Look at Project Settings, General Tab, change it so it reads "Use MFC in a shared DLL". You will get a much smaller exe size but your app will now need several DLL's (MFC42.DLL and MSVCRT.DLL are the main ones) to be able to run.
GameDeveloper
July 30th, 1999, 07:06 AM
I am using shared DLL. The Release/Debug folder
has one file in it called MyProject.pch. This
is the largest file. Do I need this file for the
.exe to run?
--GameDeveloper
"I do not know what weapons they will use in
World War III, but in World War IV they will
use sticks and stones" --Einstein
Roger Allen
July 30th, 1999, 07:38 AM
The .pch file is the pre-compiled header file used by vc++ to speed the compilation process. It is not used by the exe when running.
What difference in size do you get between the debug and release versions of your code? It could be your release version has alot of the debug settings, and will have lots of extra info added to the .exe file because of this.
HTH
Roger Allen
GameDeveloper
July 30th, 1999, 08:58 AM
Thanks! Now the stuff is small! But.. I still don't know which files in the
debug/release folder I need to put on a disk for the program to run. The DLLs
are fine (I know which ones to put) but I need to know which files in the debug/release folder are needed. ;o)
--GameDeveloper
"I do not know what weapons they will use in
World War III, but in World War IV they will
use sticks and stones" --Einstein
Roger Allen
July 30th, 1999, 09:20 AM
I think you just need the .exe file. If you know which DLL's need to be installed with your application. It's definately worth trying a trial installation on a local computer which doesn't have VC++ installed on it. This should let you know about any files you may be missing.
Don't foget to add the .txt tip file if you are using a tip of the day...
HTH
Roger Allen
7ig3r
August 2nd, 1999, 12:07 PM
turn off the debugging info switch in your compiler and linker settings.
Hope this helps,
7ig3r
Da7ig3r@hotmail.com
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.