CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 1999
    Location
    San Diego, CA
    Posts
    114

    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


  2. #2
    Join Date
    May 1999
    Location
    Jerusalem, Israel
    Posts
    251

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured