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


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?

Who is Participating?
jkrConnect With a Mentor Commented:
Try a complete rebuild. That usually only happens when a binary gets corrupted.
DJ_AM_JuiceboxAuthor Commented:
That was strange, oh well.

Kent OlsenData Warehouse Architect / DBACommented:
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,
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.