Solved

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

Posted on 2007-11-28
3
977 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

803 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