Comment 8 for bug 541956

Revision history for this message
Krzysztof Kosinski (tweenk) wrote :

LucaDC: this is wrong. Which entry point is called depends on how the application is linked, not where it is run from.

The message about DOS mode is not related in any way to running the program in console. It is a backward compatibility feature of the PE executable format. The first kilobyte or so of a PE file mimic a legacy DOS application that displays this message and exits. This code path is never run in Windows, regardless of whether the app is console or GUI.

Here's a good explanation
http://blogs.msdn.com/oldnewthing/archive/2009/01/01/9259142.aspx