CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    May 1999
    Posts
    327

    how can I build a stabdalone executable, one that does not need dll files

    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.


  2. #2
    Join Date
    May 1999
    Location
    OR, USA
    Posts
    65

    Re: how can I build a stabdalone executable, one that does not need dll files

    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.


  3. #3
    Join Date
    May 1999
    Posts
    11

    Re: how can I build a stabdalone executable, one that does not need dll files

    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.


  4. #4
    Join Date
    May 1999
    Location
    Greenville, SC, USA
    Posts
    33

    Re: how can I build a stabdalone executable, one that does not need dll files

    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²


  5. #5
    Join Date
    May 1999
    Location
    Austria
    Posts
    116

    Re: how can I build a stabdalone executable, one that does not need dll files

    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°°°°°.... . . . . . . . . . .

  6. #6
    Join Date
    May 1999
    Location
    Greenville, SC, USA
    Posts
    33

    Re: how can I build a stabdalone executable, one that does not need dll files

    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.


  7. #7
    Join Date
    May 1999
    Location
    Austria
    Posts
    116

    Re: how can I build a stabdalone executable, one that does not need dll files

    Sorry.

    This feature is only avaliable in the professional and the enterprise edition.

    ÖÖÖÖÖ@OOOOOOOOOO00000000ooooooooooo°°°°°.... . . . . . . . . . .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured