VC++ 5.0: Compile for Windows or DOS?
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
Re: VC++ 5.0: Compile for Windows or DOS?
Try to change in project settings | c/c++ | preprocessor definitions the definition of _WINDOWS to _CONSOLE.
Hope, this will work for you.
Jack.