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!

Get C++ program to work in dos

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hi,

I would like to write a program in C++ of course to work in an MS-dos environment. For example when I boot up my computer with the start-up disk I want the program that I write in C++ to execute. I have MS visual studio 6.0
How do I get it to work? Or can you give a suggestion?
 
Create a Win32 Application Project in VC++.
That will run in a dos environment. MFC projects will run under a windows environment.

Take care,
Mike B. Take Care,
Mike
 
thkx but not what i was looking for.
This is what I want to do.
I am creating an Exe(using MS visual C++,Win32 console) that will automatically recovery my hard drive.
First I format may hard drive. And boot up using the microsoft startup disk. Next, It will bring me to the command prompt window. OK here is the problem I am having.
When I type in the name of the program that I created
in win32 console, it wouldnt run.Because its not win32 environment. My question is how can I make the my to run.
Is there an option in MS visual C++ option that will enable me to compile my program to run in a non win32 environment.
 
Hello,
i have the same problem. I have to write an RPC-app for dos
and i'd found an option for real dos.
I know the old Visual Studio befor Ver. 5.x can compile for dos with mfc and so i search for this old compiler.
My old Borland C++ 4.5 can also compile the old MFC but have not all lib files i need for this project.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top