Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / July 2004

Tip: Looking for answers? Try searching our database.

Compile C for pure dos mode

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BIOS Developer - 06 Jul 2004 02:55 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.