C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 01-19-2002, 05:05 AM   #1
I'm Back
 
Join Date: Dec 2001
Posts: 556
Program to run in Dos only

i'm writing a program which i want to run from dos only and not run from windows

it should display the message that the mswindow programs display - You cannot run this program from the Windows MS-DOS command prompt.-

what should i do??
ihsir is offline   Reply With Quote
Old 01-19-2002, 10:23 AM   #2
Registered User
 
Join Date: Jan 2002
Posts: 68
The reason that message comes up is that windows decides that the program should not be run in windows...not the actual program. So just write a program for dos with a dos compiler and windows will do your dirty work...unless o course it has no problem running your prog in windows...in which case you should leave that up to the user anyway IMHO.

The Gekko
TrojanGekko is offline   Reply With Quote
Old 01-19-2002, 06:16 PM   #3
Registered User
 
Join Date: Dec 2001
Posts: 28
Hello,

See if this works...

http://www.gameprogrammer.com/archiv.../msg00372.html
Manish is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to time how long a program takes to run? advancedk C Programming 2 08-18-2008 07:50 PM
Allowing user selection of directory so program can run .exe files? Tripod87 C Programming 4 07-24-2008 09:02 AM
fopen(); GanglyLamb C Programming 8 11-03-2002 12:39 PM
program won't run standalone richard C++ Programming 2 07-20-2002 06:21 PM
initialising a DOS program from a C enviroment Robert_Ingleby C Programming 5 03-07-2002 01:53 PM


All times are GMT -6. The time now is 06:35 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22