Visual studio and console windows

Started by
9 comments, last by Nitage 13 years, 4 months ago
You can't just set the entry point to main. The entry point isn't the top level user function - it's a function which initializes the C++ runtime and initialises static and global objects. If you set the entry point to your top level user function, your program will almost certainly crash.

If you want to know more, put a break point in main and step up the callstack - I believe VS2010 comes with full source code to the CRT.

This topic is closed to new replies.

Advertisement