| I *thought* I selected console application for a program I am writing
(strictly DOS mode). However, when I run it, it says "this program
cannot be run in DOS mode". SO, perhaps I thought wrong.
Is there a simple setting to switch the project to console mode? This
has happened to me a number of times, and I typically just recreate the
project properly. I figure there must be an easier way (VC++ 4.0).
jeb
|
| I tried again, and created a project workspace and specified console
mode. However, the application will still not run under Windows 95
in DOS mode (it runs in a Win95 DOS window, but not if you boot up and
select command prompt only).
This worked under 1.x. How do you create a DOS-only app with VC++ 4.0?
jeb
|
|
It worked because... 1.x was a 16bit compiler, v4.0 is a 32bit compiler/code
generator... DOS can't deal with 32bit applications unless there is a dos
extender around.
The reason why you can't run the program under dos is that because it is a
32bit application, the header in the executable is different than that of
a normal dos program (it actually looks to DOS like a windows application).
Jeff
|