Click to See Complete Forum and Search --> : VC++ 5.0: Compile for Windows or DOS?


Jayson Smith
September 13th, 1999, 12:17 AM
I've had the problem several times where I write a program that I want to compile DOS-style (i.e. start executing main()) and add it into a new project with VC++ 5.0, it looks for WinMain(). Same deal with MFC-type projects. Only thing I could figure was manually editting the .DSP file. Is there an easier way to do this, like through project settings? TIA

Jack Shainsky
September 13th, 1999, 02:46 AM
Try to change in project settings | c/c++ | preprocessor definitions the definition of _WINDOWS to _CONSOLE.
Hope, this will work for you.

Jack.