Solved

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

Posted on 2007-11-28
3
975 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
Comment Utility
Try a complete rebuild. That usually only happens when a binary gets corrupted.
0
 

Author Comment

by:DJ_AM_Juicebox
Comment Utility
That was strange, oh well.

Thanks
0
 
LVL 45

Expert Comment

by:Kdo
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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 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.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

744 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

8 Experts available now in Live!

Get 1:1 Help Now