Tools to write a program to run under DOS 5

Started by tomexx, March 28, 2012, 02:27:16 PM

Previous topic - Next topic

tomexx

Hi,
I need to write a simple c program that will run in real DOS enviroment.

I have two PCs. My dev pc is Windows XP computer, my deploy pc is running DOS 5.0.

Tried VS C++, the program works in command prompt on my XP pc, but I'm getting error when trying to run the .exe on my DOS computer "This program can not run in DOS"


What IDE/tools do I need to write the dos program on my XP computer and deploy to my DOS computer?

Thanks,
Tomexx

MichaelW

If you don't already have a C compiler for DOS, you could try the Open Watcom compiler:

http://www.openwatcom.org/index.php/Main_Page

The package includes one or more compilers that produce 16-bit DOS executables.


eschew obfuscation

clive

#2
Borland released their Turbo C 2.0 and 3.0 into the public domain some time back. I couldn't find a quick cite.

Microsoft for the longest time had Microsoft C/C++ 8.00c (1.52) 16-bit compiler bundled with their 32-bit C Compilers. I'm pretty sure you could pick one up on eBay if you got a Microsoft C/C++ v2.xx or v4.xx.

http://www.ebay.com/itm/Microsoft-Visual-C-for-16-bit-Windows-based-Developtment-1-52-4-1-MINT-/200726102884?pt=LH_DefaultDomain_0&hash=item2ebc354364

There are older 16-bit Microsoft C compilers that might be workable to, C 5.1 or 6.0, although the earlier cited one will have a better chance of compiling larger or more complex code.

The Watcom C compilers in the 10.x and 11.x era also had 32-bit DOS extenders (DOS4G, PMW, CAUSEWAY) that can run very large applications on a 386 based DOS computers.
It could be a random act of randomness. Those happen a lot as well.

MichaelW

I had forgotten about the Microsoft compilers. I have a DDK from some years back (3780.1830) that has a bin16 directory with several 16-bit compilers, along with MASM 5.10A, a 16-bit linker, etc. Not sure if that particular DDK is still available, or if the older versions available now include those components. Last time I checked the older (~2003) PSDKs were available, so perhaps the older DDKs (now know as WDKs) are too.

Edit: It was the Windows Server 2003 SP1 DDK, and the download link on the page that I saved locally still appears to work, so it is probably still available somewhere on a Microsoft site.

eschew obfuscation

Vortex

Quote from: MichaelW on March 28, 2012, 06:38:12 PM
Edit: It was the Windows Server 2003 SP1 DDK, and the download link on the page that I saved locally still appears to work, so it is probably still available somewhere on a Microsoft site.

Hi MichaelW,

This one works :

Microsoft Driver Development Kit for Windows 2003 :

http://download.microsoft.com/download/9/0/f/90f019ac-8243-48d3-91cf-81fc4093ecfd/1830_usa_ddk.iso

http://www.alex-ionescu.com/?p=4