Re: Standalone EXE



jp2code wrote:
How do I create a standalone executable?

I often build little apps to do testing here in our lab, but I always have to bring my developing laptop with me because I can't seem to create an executable that will run without having to go through the whole Installer process.

How can I create a stand-alone .exe file?

I want to just copy it over to my flash drive, then walk over in to the lab, pop my flash drive in, and do my COM port testing without having to undock my workstation the having the piece of junk lock up on me whenever I try to dock it later.

This is just a standard MFC dialog application.

Use static linking.

BTW, if this is a question about an MFC application, you are really in the wrong group. It is not an IDE issue, it is an MFC issue. So use the MFC group. Many kinds of apps cannot use static linking, but MFC apps can.

--
David Wilkinson
Visual C++ MVP
.



Relevant Pages

  • Re: Basic facilities required to establish a pen test lab
    ... Surely you can pull a few boxes together,install different OS'es on each ... I find that by testing exploits in the lab, ... I most often find myself using a number of old servers ... Need to secure your web apps NOW? ...
    (Pen-Test)
  • Re: Forms and VC++
    ... programmers. ... pretty well forced into giving them an introduction to MFC. ... capability is easier to use than MFC. ... etc. - .NET has garbage collection of course so your C++ apps will no longer ...
    (microsoft.public.vc.language)
  • Re: Followup: Native win32 apps still require .NET runtime?
    ... >any thought I had of compiling my MFC app with CLR. ... I've written lots of MFC apps but haven't been tempted to recompile ... it may fix the bug I've seen, so I don't want to do that. ... I was originally skeptical someone told me about the DLL problem. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: CodeJock MFC products now 50% off thru end of October 2007
    ... All the legacy continues to be what it was C++ etc but new apps are predominantly .Net. ... For web applications, yes. ... I did MFC for over 10 years and have been doing .Net for over a year. ...
    (microsoft.public.vc.mfc)
  • Re: Unicode setting question
    ... and yet WinForms has long ago overtaken MFC for writing Windows GUI ... The mass-deployed consumer apps that I typically write ... I am skipping WinForms in favor of WPF. ...
    (microsoft.public.vc.mfc)