Computing.Net > Forums > Programming > C++ ms-dos

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

C++ ms-dos

Reply to Message Icon

Name: jeff800000
Date: December 18, 2004 at 17:41:19 Pacific
OS: winxp
CPU/Ram: 3.4GHz
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: StuartS
Date: December 19, 2004 at 01:05:23 Pacific
Reply:

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


0
Reply to Message Icon

Related Posts

See More


Assembly Serial Port Acce... C++ programing (Overloadi...



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: C++ ms-dos

standard MS-DOS format for date/tim www.computing.net/answers/programming/standard-msdos-format-for-datetim/8090.html

Get current directory in MS-DOS www.computing.net/answers/programming/get-current-directory-in-msdos/14403.html

C++ and DOS www.computing.net/answers/programming/c-and-dos/9540.html