Maybe you corrupted some files or the ide. I had that happen to me and just had to reinstall visuall c++6. You know when your icons go black that some memory somewhere got overwritten. ;)
Printable View
Maybe you corrupted some files or the ide. I had that happen to me and just had to reinstall visuall c++6. You know when your icons go black that some memory somewhere got overwritten. ;)
Your problem may be the fact that you are using void main (appologies if it was answered...i just saw no one was getting anywhere in the first few i read). Your debugger is just telling you that the program returned an error. Now to you there is no error, but to your debugger its telling you what main returned. Since it returned nothing the debugger is just vomitting the number the eax register just happened to have in it back to you.
Maybe before you used Ctrl-F5 (or Execute !), which automatically adds the "Press any key to continue.". Now you are using just F5 (or Go) which does not.
The information you posted at the top is completely normal when you run your program through the debugger (F5), so don't worry about it. I'd suggest learning more about the debugger (it is a great tool), and adding a breakpoint to the end of your main function so that you can see the output before it closes. Or you could use one of the plethora of techniques to pause it before the program ends. Or, you could just use Execute (Ctrl-F5) to run your program outside the debugger like you used to.
HOLY MAJEEBUS U are my hero lol, ugh i cannot believe i am so retarded (i just reinstalled anyways). It was because I was too used to JCreator and pressing F5 for execute that I completely forgot ctrl+f5 for vC++. Thanks a lot, and thanks for all the other advice, i'll be sure to use int main :DQuote:
Originally Posted by jlou