Can't Tell the Error
Hi everyone, I have been working on my game now for a couple of weeks, and have decided to convert it to an exe so that you guys can download it and give me comments. Now when I converted it, everything seemed as if it had gone off fine, but when I double click on the exe, I see the window for about a second and then it closes, but I can't read the error message in the command prompt because it appears and disapears so fast, does anyone have any suggestions for how to be able to see the error message?
I assume it is a C++ console application.
The "kosher" way to do it is to open the program in a command prompt. An alternative, though, is to put std::cin.get();, or system( "pause" ); at the end of your main() function. Both functions have their drawbacks (the first may not work depending on the state of the stream, the second is platform-specific and is not guaranteed to do what you think even on the target platform).
jfl.
The "kosher" way to do it is to open the program in a command prompt. An alternative, though, is to put std::cin.get();, or system( "pause" ); at the end of your main() function. Both functions have their drawbacks (the first may not work depending on the state of the stream, the second is platform-specific and is not guaranteed to do what you think even on the target platform).
jfl.
Quote:Original post by PhlashStudiosGo to Start->Run->"command"->OK and then cd to your project directory and run your application by typing in its filename and pressing enter.
How would I do that (I'm not very experienced with console programming)
Ok thanks...(its actually a converted python program) If youd like to know how to accomplish this i can easily oblige
The same thing happens....the window and the command prompt open and then close within a second and i cant tell what the command prompt window says
Quote:Original post by PhlashStudiosWhat do you mean by "converted"?
Ok thanks...(its actually a converted python program) If youd like to know how to accomplish this i can easily oblige
Quote:Original post by PhlashStudiosOh, then that's beyond me. I gather that there are several members of this community that are knowledgable with Python, so you are sure to find an answer. Good luck.
I "froze" the python script into an exe
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement