Click to See Complete Forum and Search --> : how can I build a stabdalone executable, one that does not need dll files
Danielle Harvey
May 31st, 1999, 09:13 AM
I have visual c++ 5.0 professional edition and vc++ 6.0 standard edition. When I compile and
distribute a program, it doesn't work on other people's computer without a million dll files.
Is there any way of building a standalong executable, one that does not require any dll files.
Any response any one can give me will be greatly appreciated.
Yogen M
May 31st, 1999, 11:20 AM
Use static MFC libraries instead of shared dlls which is the default setting.
But this will result in increasing size the of ur application 10 times of original.
Tom G
May 31st, 1999, 05:37 PM
Consider an installer for distributing your programs. Install Shield's new releases are very user friendly. They have a version called Install Shield Express which automatically detects and packs the needed DLLs into the installer. A free version is included with VC++ 5.0 Pro, but it is more difficult to use. WinZip Self-Extractor could be another alternative, although I'm not familiar with its operation. Assuming you're using MFC, anyone running '95 or better should already have an appropriate MFC42.DLL installed (I'm not absolutely sure of this, some early releases of '95 may fail). You could also simply distribute the DLLs with the .exe, giving the user instructions on copying them to their WINDOWS\SYSTEM directory.
G Squared
May 31st, 1999, 08:35 PM
One of the problems you may be experiencing is compiling a debug version.
When you send your applications to others, you want to compile a release version.
A release Version uses different, more standard, dll's(and runs faster).
To compile a release version, choose configuration(?) under the build menu.
~G²
DiDi
June 1st, 1999, 03:55 AM
Use the MFC as a static linked library.
You can do this by changing your Project settings.
Just choose Project/Settings in the Menu an switch the ComboBox in the General section.
But your .exe is goint to be a lot bigger
ÖÖÖÖÖ@OOOOOOOOOO00000000ooooooooooo°°°°°.... . . . . . . . . . .
G Squared
June 1st, 1999, 06:37 PM
Is this a feature not available for Standard Edition VC++ 6.0? The combo box in Project Settings that I am looking at has only one option.
DiDi
June 2nd, 1999, 02:07 AM
Sorry.
This feature is only avaliable in the professional and the enterprise edition.
ÖÖÖÖÖ@OOOOOOOOOO00000000ooooooooooo°°°°°.... . . . . . . . . . .
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.