CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: How to use Visual Studio 2010 to compile dos programs?

  1. #1
    Join Date
    Dec 2010
    Posts
    907

    How to use Visual Studio 2010 to compile dos programs?

    I want to use it to compile 16bit dos programs
    and 32bit protected mode programs
    Thanks
    Jack

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,736

    Re: How to use Visual Studio 2010 to compile dos programs?

    No idea why you need it and whether it is possible.
    But look at http://stackoverflow.com/questions/1...ompile-for-dos
    and other discussions.
    Victor Nijegorodov

  3. #3
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,154

    Re: How to use Visual Studio 2010 to compile dos programs?

    Quote Originally Posted by lucky6969b View Post
    I want to use it to compile 16bit dos programs
    and 32bit protected mode programs
    Thanks
    Jack
    Not with VS2010. if you need (?) to create 16bit/32bit protected dos programs you will need another compiler that can produce these.
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++17 Compiler: Microsoft VS2019 (16.6.3)

  4. #4
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,607

    Re: How to use Visual Studio 2010 to compile dos programs?

    Quote Originally Posted by 2kaud View Post
    to create 16bit/32bit protected dos programs you will need another compiler that can produce these.
    ... which is MS Visual Studio 1.x (1.5 was the last from the family, a.f.a.i.r).
    Best regards,
    Igor

  5. #5
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,306

    Re: How to use Visual Studio 2010 to compile dos programs?

    Visual C++ 1.52c was the last MS 16-bit compiler. It will compile 16-bit programs, but not 32-bit programs. There is no MS compiler that will compile 16-bit and 32-bit programs. There used to be Win32s, but there is really no point in building a Win32s program now (as Win32s was meant as a way for developers to create pseudo-32-bit programs before Win95 was released).

  6. #6
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,626

    Re: How to use Visual Studio 2010 to compile dos programs?

    For 16bit DOS you will need either an old compiler, or you will need a version of GCC that's capable of doing so (not sure if there are any).
    If GCC doesn't provide it, finding a C++11 compatible compiler with DOS support will not exist.

    For 32bit protected mode in DOS, afaik, there's only the watcom with DOS extender (DOS4/GW aka Causeway) that'll fit the bill. IIRC they opensourced this a few years ago.

  7. #7
    Join Date
    Jun 2002
    Location
    Stockholm, Sweden
    Posts
    1,641

    Re: How to use Visual Studio 2010 to compile dos programs?

    You can't even compile binaries for windows 2000 with VS2010.
    Nobody cares how it works as long as it works

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)