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. Using Visual C++ 6 to create DOS applications

Using Visual C++ 6 to create DOS applications

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
7 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.
  • X Offline
    X Offline
    Xds
    wrote on last edited by
    #1

    Hello all, I own Microsoft Visual C++ 6 Pro, and have been using it for some time. I've created "Win32 Console Applications" but am interested in using the VC++ dev env to create true MSDOS programs. Speciafically, I'm creating a DOS program that is going to access the serial port. What's the best way to go about this? I've tried #include'ing but it doesn't seem to be the full featured library that is included with other DOS based compilers. Specifically, it's missing things like textcolor() and gotoxy(). Thanks for your help! Xds

    L C M N J 5 Replies Last reply
    0
    • X Xds

      Hello all, I own Microsoft Visual C++ 6 Pro, and have been using it for some time. I've created "Win32 Console Applications" but am interested in using the VC++ dev env to create true MSDOS programs. Speciafically, I'm creating a DOS program that is going to access the serial port. What's the best way to go about this? I've tried #include'ing but it doesn't seem to be the full featured library that is included with other DOS based compilers. Specifically, it's missing things like textcolor() and gotoxy(). Thanks for your help! Xds

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

      I think Microsoft doesn implemented those function. And with VC++6 you can only create Console apps. All programs for DOS are console apps on Windows.

      1 Reply Last reply
      0
      • X Xds

        Hello all, I own Microsoft Visual C++ 6 Pro, and have been using it for some time. I've created "Win32 Console Applications" but am interested in using the VC++ dev env to create true MSDOS programs. Speciafically, I'm creating a DOS program that is going to access the serial port. What's the best way to go about this? I've tried #include'ing but it doesn't seem to be the full featured library that is included with other DOS based compilers. Specifically, it's missing things like textcolor() and gotoxy(). Thanks for your help! Xds

        C Offline
        C Offline
        Carlos Antollini
        wrote on last edited by
        #3

        Console is a win32 DOS, you cabn use all the bateri of functions of win32. For access to serial port you need to use the CreateFile Function... If you want to use gotoxy, textcolor and things like these, you nedd to use the Turbo C... ;) Best Regards Carlos Antollini. Sonork ID 100.10529 cantollini

        1 Reply Last reply
        0
        • X Xds

          Hello all, I own Microsoft Visual C++ 6 Pro, and have been using it for some time. I've created "Win32 Console Applications" but am interested in using the VC++ dev env to create true MSDOS programs. Speciafically, I'm creating a DOS program that is going to access the serial port. What's the best way to go about this? I've tried #include'ing but it doesn't seem to be the full featured library that is included with other DOS based compilers. Specifically, it's missing things like textcolor() and gotoxy(). Thanks for your help! Xds

          M Offline
          M Offline
          Michael P Butler
          wrote on last edited by
          #4

          VC6 doesn't support DOS applications. That last version of the MS Compiler to produce DOS code was 1.52. I haven't seen this for a while. It used to be on the MSDN Archive CDs but I don't think MS bother with that any more. I believe that Borlands C compiler is freely available and still produces DOS code. Michael :-) Communication is the first step towards enlightenment.

          M 1 Reply Last reply
          0
          • M Michael P Butler

            VC6 doesn't support DOS applications. That last version of the MS Compiler to produce DOS code was 1.52. I haven't seen this for a while. It used to be on the MSDN Archive CDs but I don't think MS bother with that any more. I believe that Borlands C compiler is freely available and still produces DOS code. Michael :-) Communication is the first step towards enlightenment.

            M Offline
            M Offline
            mstephens
            wrote on last edited by
            #5

            If you're an MSDN subscriber then you can still download the old 16bit Visual C++ 1.52. It certainly can create DOS apps as we have the misfortune of using it for a product with an embedded DOS. Matt

            1 Reply Last reply
            0
            • X Xds

              Hello all, I own Microsoft Visual C++ 6 Pro, and have been using it for some time. I've created "Win32 Console Applications" but am interested in using the VC++ dev env to create true MSDOS programs. Speciafically, I'm creating a DOS program that is going to access the serial port. What's the best way to go about this? I've tried #include'ing but it doesn't seem to be the full featured library that is included with other DOS based compilers. Specifically, it's missing things like textcolor() and gotoxy(). Thanks for your help! Xds

              N Offline
              N Offline
              Nish Nishant
              wrote on last edited by
              #6

              Xds wrote: Specifically, it's missing things like textcolor() and gotoxy(). You can use the API. For example, where you need gotoxy() you can use SetConsoleCursorPosition().And SetConsoleTextAttribute() instead of textcolor(). Nish


              Check out last week's Code Project posting stats presentation from :- http://www.busterboy.org/codeproject/ Feel free to make your comments.

              1 Reply Last reply
              0
              • X Xds

                Hello all, I own Microsoft Visual C++ 6 Pro, and have been using it for some time. I've created "Win32 Console Applications" but am interested in using the VC++ dev env to create true MSDOS programs. Speciafically, I'm creating a DOS program that is going to access the serial port. What's the best way to go about this? I've tried #include'ing but it doesn't seem to be the full featured library that is included with other DOS based compilers. Specifically, it's missing things like textcolor() and gotoxy(). Thanks for your help! Xds

                J Offline
                J Offline
                Jeremy Falcon
                wrote on last edited by
                #7

                As mentioned, Turbo C++ is free now. Also, if you don't want to spring for MSDN you can buy the book "Learn Visual C++ Now" by Mark Andrews. It comes with a copy of VC++ 1.0 which still compiles DOS apps. Jeremy L. Falcon "You do not know the power of the dumb side." Homepage : Sonork = 100.16311
                Maybe my mangling might misguide malicious miscreants momentarily?

                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