View Single Post
Old May 29th, 2006, 7:44 PM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Please read the "How to Post a Question" thread. Information is key; you need to think about it. Also, may as well read the forum's faq/rules while you're at it, just for future reference. Having a window appear only long enough to get a flash of it is perfectly normal, if the window belongs to the app. If the window belongs to YOU (because you opened a cmd window and launched your program from there), then it will persist. This is an exceedingly common question and has been answered several times on the forum (which is why we have a search button, to reduce the pain of repeating ourselves). At any rate, the quick solution, IF that's the problem (your informative description falls very short), is to ask for user input at the very end. That has the effect of keeping your program from finishing (and closing its window) before your eyeballs can glom onto things.

Read those thangys. Your operating system, platform, exact error messages, succinct description, are almost ALWAYS needed. We had a mind reader but he was taxed once too often and is now in the looney bin.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote