How do I see my C++ app?
-
I have built a cpp project into an exe file. When I run it it just shows for a moment and disappear. How can I make it seen untill i close the app. Please help Angalo Angalo
There's no way to answer this without seeing any of your code.
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
-
I have built a cpp project into an exe file. When I run it it just shows for a moment and disappear. How can I make it seen untill i close the app. Please help Angalo Angalo
How are you running it? Is it a GUI or console application? If the former, is it dialog, SDI, or MDI?
"The largest fire starts but with the smallest spark." - David Crow
-
I have built a cpp project into an exe file. When I run it it just shows for a moment and disappear. How can I make it seen untill i close the app. Please help Angalo Angalo
Angalo wrote:
I have built a cpp project into an exe file. When I run it it just shows for a moment and disappear. How can I make it seen untill i close the app. Please help
Use Ctrl-F5 or put a getch() as the last line in your main function. Regards, Nish
Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
Currently working on C++/CLI in Action for Manning Publications. -
How are you running it? Is it a GUI or console application? If the former, is it dialog, SDI, or MDI?
"The largest fire starts but with the smallest spark." - David Crow
-
I have built a cpp project into an exe file. When I run it it just shows for a moment and disappear. How can I make it seen untill i close the app. Please help Angalo Angalo
It sounds like you are running your application under the debugger. Place a breakpoint on the last line of code in your application. For a console application, this will be the
return
statement in themain
function.
Software Zen:
delete this;
-
Hi! It is a console application. When I run the exe it just shows the conole and immediately disappears.
Open a command prompt window first, and then run your application from there. It should be fine.
"The largest fire starts but with the smallest spark." - David Crow