Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 320
  • Last Modified:

About Visual C++ and DOS programs

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
dondiego
Asked:
dondiego
1 Solution
 
AxterCommented:
Just create a Console Application.
0
 
jkrCommented:
>>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
 
jkrCommented:
>>Just create a Console Application

Win32 console apps won't run under pure DoS...
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
ShaunWildeCommented:
you'll need a 16-bit compiler - Visual Studio 1.51 was the last one I used
0
 
jhanceCommented:
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
 
TriskelionCommented:
1.52c was the last.
Everyone else is right that you cannot move a 32-bit console app to a 16 bit OS.
0
 
DanRollinsCommented:
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
 
jhanceCommented:
>>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
 
makerpCommented:
http://www.delorie.com/djgpp/16bit/

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

maybe you can get it to churn out 16bit exes
0
 
dondiegoAuthor Commented:
Thank you everybody.  I really apreciate your answers.  See you,

DonDiego.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now