Solved

About Visual C++ and DOS programs

Posted on 2001-09-14
10
293 Views
Last Modified: 2013-12-14
Hello all.  I need to know what do I have to configure in Microsoft Visual C++ 6.0 to create a program that will be running over DOS (5.0 or later).
I have a product with some C++ libraries that I should link to the new program.  So, I'm thinking to build and link the program using Visual C++ 6.0 and then move the exe file to the DOS machine.
Is that posible?
What (compile and link) parameters do I have to change to allow the program to run over DOS?
Wich values do I have to set?
Thanks a lot for your help.

DonDiego.
0
Comment
Question by:dondiego
10 Comments
 
LVL 30

Expert Comment

by:Axter
ID: 6483766
Just create a Console Application.
0
 
LVL 86

Expert Comment

by:jkr
ID: 6483767
>>I need to know what do I have to configure in Microsoft
>>Visual C++ 6.0 to create a program that will be running
>>over DOS (5.0 or later).

You can't - VC6 is _ONLY_ capable of creating 32bit executables, 16bit DoS is out. In order to create such applications, you'll have to get VC1.5, which is the last MS compiler to support 16bit applications...
0
 
LVL 86

Expert Comment

by:jkr
ID: 6483769
>>Just create a Console Application

Win32 console apps won't run under pure DoS...
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 9

Expert Comment

by:ShaunWilde
ID: 6483786
you'll need a 16-bit compiler - Visual Studio 1.51 was the last one I used
0
 
LVL 32

Accepted Solution

by:
jhance earned 200 total points
ID: 6483895
I believe that V1.52 of Visual C++ was the last VC++ to support 16-bit code.  If you have MSDN, the ARCHIVE CD has this on it.  If you don't have MSDN, get it.  If you do have MSDN but don't have the archive CD, you can order it from Microsoft.
0
 
LVL 6

Expert Comment

by:Triskelion
ID: 6484155
1.52c was the last.
Everyone else is right that you cannot move a 32-bit console app to a 16 bit OS.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 6485148
Are there really any DOS-only computers left on earth?

Perhaps you don't need a DOS-only program.  Decribe what you are trying to accomplish and maybe somebody will have some alternative ideas for you.

-- Dan
0
 
LVL 32

Expert Comment

by:jhance
ID: 6487277
>>Are there really any DOS-only computers left on earth?

You'd be amazed.   My tax accountant runs a "big-time" tax preparation system and it is STILL entirely DOS based.  While I find this almost unbelievable, he says "if it's not broken, why fix it?"...

0
 
LVL 10

Expert Comment

by:makerp
ID: 6487408
http://www.delorie.com/djgpp/16bit/

http://www.delorie.com/djgpp/

maybe you can get it to churn out 16bit exes
0
 

Author Comment

by:dondiego
ID: 6494702
Thank you everybody.  I really apreciate your answers.  See you,

DonDiego.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
regex. How to include lines between 10 83
VS can't find System.IO.Packaging 5 543
IdTCPClient1->Disconnect(); not working 3 66
Socket Programming (Unix) 8 124
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now