Re: how get a single .exe out of Visual C++ 2005 Beta



Hello,
I have heard of MFC, but never used it understand it really, all I have is a
simple program I wrote that runs in the console window, I just want to
figure out how I would save it in a way that I could just have a single file
that can be run via a Dos Prompt, I just want to send it to some people to
see what they think. Just imagine I wanted to send a simple helloWorld.cpp
program to a friend in a compiled form. How could I do that?
"Tim Slattery" <Slattery_T@xxxxxxx> ???????/???????? ? ???????? ?????????:
news:6g3s81l1s8j44tp5uamn7olsnk8bpbmnne@xxxxxxxxxx
> "David Gareau" <test@xxxxxxxxxxx> wrote:
>
>>Hey, I am currently ONLY working with Console Applications. I have the
>>code
>>and run it fine in a console (ms-dos) window, but I want to save my
>>program
>>as a single .exe file so I can send it to friends. How can I do that?
>>How do people make "programs" that I download on the Internet out of their
>>code?
>
> If your program uses MFC, you can choose the "Use MFC in a static
> library" option. In VC6 that's at Project|Settings, "General" tab.
>
> For console apps, you may be very well be able to not use MFC at all.
> Most of its utility has to do with gettig around the routine drudgery
> associated with GUI applications. Console apps (which are *not* DOS
> apps, and cannot run on a DOS machine) are quite easy to write without
> it.
>
> --
> Tim Slattery
> MS MVP(DTS)
> Slattery_T@xxxxxxx


.



Relevant Pages

  • Re: too long execution time and access violation error
    ... temporary handle, so when MFC got around to deleting it, it was already gone. ... console app and what it looks like in your MFC app? ... overwriting some critical piece of the memory allocator. ...
    (microsoft.public.vc.mfc)
  • Re: ShowWindow
    ... I have used subsets of MFC in console apps, but I've had to deal with some ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)
  • Re: ShowWindow
    ... A console application doesn't normally have windows, so it is meaningless to call ... "ShowWindow" in a consle app. ... It makes no sense to include an MFC ... calling a windowing subroutine from a console app makes even less sense than ...
    (microsoft.public.vc.mfc)
  • Re: Exiting console application
    ... >> 'onexit' handler but it's not ... Where in an MFC console application do I get an ... >> OnAppExit and onexithandlers not being called because of the ASSERT? ...
    (microsoft.public.vc.mfc)
  • Re: ShowWindow
    ... I'll do a search on msdn and see what I can find - thanks for the info. ... >> from the console application I thought I'd try to use DisplayFile. ... you can use MFC in console applications quite easily (sorry Joe ... there is a CWinApp derived class that is initialized ...
    (microsoft.public.vc.mfc)

Loading