Archived

This topic is now archived and is closed to further replies.

MSVC++ 6.0 - compiling for DOS mode

This topic is 5506 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I''m sorry I have to ask this seeingly stupid question, but... When I compiled a short program I wrote and put it on a disk to run on a DOS machine... It wouldn''t run. This is because MSVC++ 6.0 compiles to a standard Win32 exe. How can I change the way it compiles so that it will run on a machine running ONLY DOS on it? thanx sooooo much for the help! tazzel3d ~ dwiel

Share this post


Link to post
Share on other sites
quote:
Original post by Tazzel3D
How can I change the way it compiles so that it will run on a machine running ONLY DOS on it?


You can''t. MSVC 6 cannot produce DOS executables.
If you really need to create a DOS application, I would recommend using DJGPP, or perhaps Borland''s Turbo C.

Stupid server errors ...


ReactOS - an Open-source OS compatible with Windows NT apps and drivers

Share this post


Link to post
Share on other sites
Hey,

That really stinks...

I kinda assumed that it wasn''t possible because when you go to build a project, the only option uner Platform was Win32...

huh ok I think I''ll just get Borland...

that works for DOS right?

btw, Thanx for the fast replies!!

tazzel3d ~ dwiel

Share this post


Link to post
Share on other sites
Hello, I was wondering if there was a basic copiler that created DOS executables. I don''t need anything fancy. I got Borlan, but it doesn''t have a function to send data to the port... like an outportb() or an _outp(). Or at least i can''t find one. Is there one?

If not, what compiler is really basic and has a routine to access the port?

thanx sooo much

tazzel3d ~ dwiel

Share this post


Link to post
Share on other sites
DJGPP does.

Installation is basically unzipping everything to the same directory, adding

set PATH=C:\ (where you unzipped to) \BIN;%PATH%
set DJGPP=C:\ (where you unzipped to) \DJGPP.ENV

to your autoexec.bat file or making a batch file to do it if you would rather not screw with what your computer does when it boots.

To actually use it and executables you make with it in DOS you need a DPMI server, I think it comes with one, if not you can download one here.

Share this post


Link to post
Share on other sites