Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to compile to run in msdos?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I want a to compile a program that can run in msdos mode(-not- using the msdos prompt in windows) using vc++. How is that done? When I compile it the usual way, it runs in de msdos prompt window, but when it is executed in real msdos mode, a message is displayed stating that this program cannot run in dos.

Thanx in advance,
Kees.
 
Did you use any MFC headers, functions or classes in your code? Most are Windows based and require Windows to be running.

Which operating system (Win9x / NT 4.0 / 2000 / XP) are you using?
 
hi, now that someone has ask this question I am going to ask too.I very curious and would like to know if visual C++
can be compile to run in real dos mode.Anyone with answer to this?
 
It's my understanding that as long as you only use the standard library calls (don't use the WIN32 or MFC headers, functions, and data types), you should be able to run your programs in real DOS mode.
 
MSVC no longer compiled real mode program. You can compiled a 32-bit console program, which can run in a MS-DOS prompt (or command prompt in NT, 2K) window, but not in MS-DOS mode.

IIRC, the last 16-bit compiler from MS is VC++ 1.52.

BTW, you can use many Windows APIs for 32-bit console program. You can also create a console program that support MFC: In step 1, select "An application that supprt MFC" when you create a new "Win32 Console Application".

HTH
Shyan

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top