Hi,
Due to license reasons, I recently purchase VS.Net for
ml.exe and C compiler. How do I compile C language that
can be run on Pure dos mode by using VS.Net 2003?
thx
Lau Lei Cheong - 06 Jul 2004 03:40 GMT
As far as it is created as Windows application, it cannot be run as pure DOS
application, you can run the program in console mode, but that doesn't mean
it's DOS application either.
If you've examinated "vc7\include\stdio.h", you can see the following:
#if !defined(_WIN32)
#error ERROR: Only Win32 target supported!
#endif
For compiling DOS appication, I'll recommand those "non-visual" programming
packages, preferring the old ones as "new" ones may also have DOS program
support removed.
> Hi,
>
[quoted text clipped - 3 lines]
>
> thx
Jim - 06 Jul 2004 03:57 GMT
>Hi,
>
[quoted text clipped - 3 lines]
>
>thx
VS.NET only builds code for 32 bit Windows. It won't build DOS
applications, 16bit or DOS Extended. If you need that, you could
maybe look at OpenWatcom, Borland C/C++ or one of the gcc based DOS
ports.
Jim