View Full Version : Pardon my stupidity but.....
How do I compile to an EXE in Visual C++? Does it matter if I created a win32 console app? I made a little program ( a win 32 console app) and I wanna e-mail it to my Dad. So....how??
Thetargos
12-20-03, 11:02 PM
Just open up the project and build it... It isn't that hard... :dunno:
Just open up the project and build it... It isn't that hard... :dunno:
OK...That is what I thought...... maybe I am not understanding this.The only exe I see is in the debug file or in the release in where I save my projects. When I click it, a console window opens and then just closes quickly. Unlike where when I have C++ open and after is spits out my answer it says press any key to continue. So am I looking at the right exe??
Thetargos
12-20-03, 11:17 PM
I don't think so... Maybe you need to revise the compiling options.
I don't think so... Maybe you need to revise the compiling options.
Hmmmmmmm you might have a point there. Would that fact that I seleted make a Win32 console app and then selected empty project make a differance?
Thetargos
12-20-03, 11:23 PM
Maybe, I've never used VisualC++ IDE, but almost every IDE lets you choose... you may (if your project is only composed of one file) copy it's contents and then try creating a new project...
FluxCapacitor
12-21-03, 08:14 AM
OK...That is what I thought...... maybe I am not understanding this.The only exe I see is in the debug file or in the release in where I save my projects. When I click it, a console window opens and then just closes quickly. Unlike where when I have C++ open and after is spits out my answer it says press any key to continue. So am I looking at the right exe??
That's the right exe. If your program doesn't have any user interaction, when you run it from windows explorer it will just close immediately after spitting out the results.
Either run it from the command line or add a getc() to the end of the code to simulate the 'Press Any Key' thing.
WedgieMan
12-21-03, 11:31 AM
Yeah, Flux has it. I usually put a getch() call at the end of console apps so I can see the output. Be sure to #include <conio.h>
Wow thanks guys I really appreciate all this help you guys rock. And wedgie....even though I have not been posting I have been lurking here for quite awhile now and I must say I am very impressed with how willing to help you always are. I am finally spending more time coding now so expect to see me here often now.
Cool that did it!!!Thanks!
vBulletin® v3.8.1, Copyright ©2000-2013, Jelsoft Enterprises Ltd.