I've been compiling a VB6 application recently and have had a number of annoying problems with the resulting exe. When running it from the command prompt, the compiled executables will attempt to report problems to Microsoft on my behalf, or occasionally report that "This program cannot be run in DOS mode."

While I can "fix" this problem by making pointless changes to the source code and recompiling, I wonder if there is any reason for this and what I can do about it.

I'm using VB6 (SP6) on XP.


I think that this link may be useful. You are trying to start a Windows program in an environment that is Windows unaware. It seems that this behaviour of the DOS box can be changed.