Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can't run a Dos Program compiled under Developer Studio

0 views
Skip to first unread message

gsam...@iswt.com

unread,
Dec 30, 1997, 3:00:00 AM12/30/97
to

Anyone out there know why a program compiled under Microsoft's Developer
studio Ver.: 4.0. Standard won't run in Dos Mode ? I recently bought
Essential Visual C++ that came with Microsoft Visual C++ and the
developer studio. The book said, to create a simple program open a
Console mode application and type in :

# include < iostream.h >

int main ()

{
cout << "Hello World ! " << endl;

return 0;
}
Save that as *.cpp and add it to the project.

And then Build it... I get it compiled, no errors. The book says to open
a Dos window and run the resulting program. I type the exact name of the
program and all I get is
"This program cannot be run in Dos mode."
So I think, Ok, I have to be in Dos, I go into the nerve racking task of
shutting down the computer and dropping back to Dos and I get the exact
same message.

Please help a amateur programmer, and , Sorry if this is posted into the
wrong Newsgroup. If you know of another newsgroup that might help, or if
you have a solution to my problem please email me because my newsgroup
server doesn't update this newsgroup often.

EMAIL ME : gsam...@iswt.com

-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet

0 new messages