Overriding default behavior in DOS console w/MFC
I've created a DOS console with support for MFC, whenever the program ends, the user is prompted to press any key to close the window, i don't want this to happen, but it seems to be somewhere in MFC. I simply use:
but after they press any key, the console (not the part of code i've written) asks them to press any key again to quit, very annoying for them, and i'd much rather have my message appear than the one that MFC puts up, especially when i exit on an error. If anyone knows how to change the code for that, it would be much appreciated, if it's too tough to change it, and anyone knows how to access that string i could just change it and wouldn't have to use my code on exit....thanks.
cout<<"Press Any Key To Quit"<<endl;