Solved

This program cannot be run in DOS mode.....what?

Posted on 2007-11-28
3
976 Views
Last Modified: 2008-02-01
Hi,

I've got a command line C++ app written using vc++ 2005. I have been running it through a command line prompt on my win XP system for sometime. Now when I run it, the console just spits back an error saying "This program cannot be run in DOS mode".

Any idea why this would start all of a sudden? None of my compiler options seems to have changed?

Thanks
0
Comment
Question by:DJ_AM_Juicebox
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 20367210
Try a complete rebuild. That usually only happens when a binary gets corrupted.
0
 

Author Comment

by:DJ_AM_Juicebox
ID: 20367571
That was strange, oh well.

Thanks
0
 
LVL 45

Expert Comment

by:Kdo
ID: 20367729
Hi DJ_AM_Juicebox,

It probably links a DLL that has changed and rebuilding the application makes it now compatible with the DLL.



Good Luck,
Kent
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now