Greetings. I am in the process of learning to use Visual C++. As such, over a period of a few days, I will be asking some very stupid questions in the hopes that someone will answer them. As a reward for helping me, you all will get a free copy of my mostly useless program, when it is finished.

Right, then.

First off, how do you end a C++ program? Is there some command that works like End does in VB? I know you can pull a Return 0; in your main function, but I want to be able to end my program from a subroutine elsewhere.

Second, what happens to a C++ (windows) program when it loses the focus? Does it keep chugging away if it's in a loop or does it slow down like VB does?

~Zero the Inestimable