Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Compiling DOS Apps With Windows 7

Compiling DOS Apps With Windows 7

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
10 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    softwaremonkey
    wrote on last edited by
    #1

    Guys, I have to maintain a number of legacy products which are DOS applications, developed using MSVC 1.52. I have just splashed out on a new laptop only to find that MSVC1.52 refuses to install undr Windows 7, even in XP (and Win 98) compatibility mode. Anyone managed to do this, or does anyone know of a C compiler which will produce 16 bit DOS apps but will run under Windows 7? The code is C and not C++ and does not us MFC. Thanks Tony

    A S _ 3 Replies Last reply
    0
    • S softwaremonkey

      Guys, I have to maintain a number of legacy products which are DOS applications, developed using MSVC 1.52. I have just splashed out on a new laptop only to find that MSVC1.52 refuses to install undr Windows 7, even in XP (and Win 98) compatibility mode. Anyone managed to do this, or does anyone know of a C compiler which will produce 16 bit DOS apps but will run under Windows 7? The code is C and not C++ and does not us MFC. Thanks Tony

      A Offline
      A Offline
      Albert Holguin
      wrote on last edited by
      #2

      I believe XP (and before) used to have an emulator that would allow it to run 16bit applications... that's probably gone in the newer OS's... try to search for a 16bit emulator that you can run under...

      1 Reply Last reply
      0
      • S softwaremonkey

        Guys, I have to maintain a number of legacy products which are DOS applications, developed using MSVC 1.52. I have just splashed out on a new laptop only to find that MSVC1.52 refuses to install undr Windows 7, even in XP (and Win 98) compatibility mode. Anyone managed to do this, or does anyone know of a C compiler which will produce 16 bit DOS apps but will run under Windows 7? The code is C and not C++ and does not us MFC. Thanks Tony

        S Offline
        S Offline
        Software_Developer
        wrote on last edited by
        #3

        read this

        S 1 Reply Last reply
        0
        • S Software_Developer

          read this

          S Offline
          S Offline
          softwaremonkey
          wrote on last edited by
          #4

          Thanks, You are right of course, the problem is not so much related to Windows 7 but to the 64 bit platform. That makes the problem all the more difficult because its not just a case of replacing the OS. I saw that Windows 7 Pro has an XP mode but I guess it will be XP/64 so the problem will still be the same. Things are never easy (sigh!) :sigh:

          enhzflepE L 2 Replies Last reply
          0
          • S softwaremonkey

            Thanks, You are right of course, the problem is not so much related to Windows 7 but to the 64 bit platform. That makes the problem all the more difficult because its not just a case of replacing the OS. I saw that Windows 7 Pro has an XP mode but I guess it will be XP/64 so the problem will still be the same. Things are never easy (sigh!) :sigh:

            enhzflepE Offline
            enhzflepE Offline
            enhzflep
            wrote on last edited by
            #5

            Have you considered simply using a virtual machine? I've got win7 (home premium, so no XP emulation mode) I simply installed Virtual Box before installing XP, linux Mint, etc inside it. You'll have no problem installing XP, 2000 or 98 in it, and from there any version of visual studio you please. Of course there's always the MS Virtual PC, or the ubiquitous VMWare.

            1 Reply Last reply
            0
            • S softwaremonkey

              Guys, I have to maintain a number of legacy products which are DOS applications, developed using MSVC 1.52. I have just splashed out on a new laptop only to find that MSVC1.52 refuses to install undr Windows 7, even in XP (and Win 98) compatibility mode. Anyone managed to do this, or does anyone know of a C compiler which will produce 16 bit DOS apps but will run under Windows 7? The code is C and not C++ and does not us MFC. Thanks Tony

              _ Offline
              _ Offline
              _Superman_
              wrote on last edited by
              #6

              As pointed out by others, 64-bit Windows does not support 16-bit programs even though Intel x64 and AMD64 do support 16-bit programs. However there is a program called DOSBox (http://www.dosbox.com/download.php?main=1[^]) that can be used to run 16-bit programs. I use this program to run the old classic DOS games.

              «_Superman_»  _I love work. It gives me something to do between weekends.

              _Microsoft MVP (Visual C++)

              Polymorphism in C

              S 1 Reply Last reply
              0
              • _ _Superman_

                As pointed out by others, 64-bit Windows does not support 16-bit programs even though Intel x64 and AMD64 do support 16-bit programs. However there is a program called DOSBox (http://www.dosbox.com/download.php?main=1[^]) that can be used to run 16-bit programs. I use this program to run the old classic DOS games.

                «_Superman_»  _I love work. It gives me something to do between weekends.

                _Microsoft MVP (Visual C++)

                Polymorphism in C

                S Offline
                S Offline
                softwaremonkey
                wrote on last edited by
                #7

                Thanks, I saw DOSBox but I dont actually run the DOS apps on the development PC as they are embedded. The real problem is getting Microsoft Visual C++ V1.52 to install and run so I am looking for a Windows on Windows solution. :thumbsup:

                G 1 Reply Last reply
                0
                • S softwaremonkey

                  Thanks, You are right of course, the problem is not so much related to Windows 7 but to the 64 bit platform. That makes the problem all the more difficult because its not just a case of replacing the OS. I saw that Windows 7 Pro has an XP mode but I guess it will be XP/64 so the problem will still be the same. Things are never easy (sigh!) :sigh:

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  I have a 64-bit Windows 7 system, running 32 bit XP in the virtual machine, so that may be an answer. You can get the VM from Microsoft[^].

                  Unrequited desire is character building. OriginalGriff

                  1 Reply Last reply
                  0
                  • S softwaremonkey

                    Thanks, I saw DOSBox but I dont actually run the DOS apps on the development PC as they are embedded. The real problem is getting Microsoft Visual C++ V1.52 to install and run so I am looking for a Windows on Windows solution. :thumbsup:

                    G Offline
                    G Offline
                    Goto_Label_
                    wrote on last edited by
                    #9

                    with Windows Virtual PC here an example

                    S 1 Reply Last reply
                    0
                    • G Goto_Label_

                      with Windows Virtual PC here an example

                      S Offline
                      S Offline
                      softwaremonkey
                      wrote on last edited by
                      #10

                      Thanks a lot for the suggestion. I have installed Virtual PC and XP (32 bit) and my MSVC 1.52 is installing nicely. Great solution (and free). :thumbsup: :thumbsup:

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups