|
-
Sep 18th, 2000, 11:54 AM
#1
Thread Starter
Frenzied Member
I am making a Win32 Console Application and it works fine when i run it from VC++ but in Windows When i double click on the app, it dissapears imediately.
How Can i fix that.
Thanks!
-
Sep 18th, 2000, 12:26 PM
#2
Monday Morning Lunatic
At the very end of your main() function, put:
You'll need to have included <stdlib.h> for this to work.
The best way, though, is to open up a command prompt and run it from there.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 18th, 2000, 03:43 PM
#3
Addicted Member
Kinda like the problem I had
Except I Was trying to make it pause at the end, waiting for a keystroke, I used getCh and also tried kbhit(), but in both instances, the display was blank until I pressed a key, and it would show it then immediatly exit, ( In other words, I think the console couldnt show the display fast enough, and it paused it before the console could show it, then it unpaused and showed when I pressed a key) any insight on how to do the same, or if that system("pause") will have the same behavior?
-
Sep 19th, 2000, 06:47 AM
#4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|