Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I'm a begginer at C++. I'm using MSVC++6.0, i would like to create and application that can be run in pure MS-DOS mode - i.e running it from a Win98 boot disk. Is there a special project type that i need to select? I've done some looking around and it appears that i have to tell my compiler to insert a stub on my exectutables header. According to microsoft there is an option so that you can set the linker to do this. I got this information from:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_.2f.STUB.asp
I'm only trying to build a simple program that only needs to be run in DOS.
Does any1 have any ideas
Thanks

The Stub you describe is not for making DOS programmes. It is inserted into Windows programmes so that if a Windows programme is run under DOS, it produces a message along the lines of "This programme will not run in DOS Mode" and then exits gracefully.
Without the stub, running a Windows programme under DOS could lock up the computer.
To make a DOS programme in C++ you are going to the need a 16 bit compiler for DOS. A search of Google should bring you many options.
You are also going to need to learn about the segmented memory model which doesn't apply to windows programming.
http://www.cs.mun.ca/~paul/cs3725/material/web/notes/node12.html
Stuart

![]() |
Assembly Serial Port Acce...
|
C++ programing (Overloadi...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |