Link to home
Start Free TrialLog in
Avatar of dondiego
dondiego

asked on

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.
Avatar of Axter
Axter
Flag of United States of America image

Just create a Console Application.
>>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...
>>Just create a Console Application

Win32 console apps won't run under pure DoS...
Avatar of ShaunWilde
ShaunWilde

you'll need a 16-bit compiler - Visual Studio 1.51 was the last one I used
ASKER CERTIFIED SOLUTION
Avatar of jhance
jhance

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
1.52c was the last.
Everyone else is right that you cannot move a 32-bit console app to a 16 bit OS.
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
>>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?"...

Avatar of dondiego

ASKER

Thank you everybody.  I really apreciate your answers.  See you,

DonDiego.