Well then you did in fact output to the console. Otherwise, the DOS box wouldn't of flashed. Probably the return code of the MessageBox() function.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.