Possible Duplicate:
How to stop C++ console application from exiting immediately?
I'm working with c++ and when I run my console program, it instantly exits. I can't read input from in my main method/set breakpoints because the main method is defined in another library.
So, I'm asking how can I prevent the console application from exiting by using a setting in visual studio?