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