[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference 7.286::visualc

Title:Microsoft Visual C/C++
Moderator:PLUGH::needle
Created:Tue Mar 16 1993
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1121
Total number of notes:4385

1047.0. "I want "printf" to come out on my console window (Win NT)" by KZIN::HUDSON (That's what I think) Fri Oct 11 1996 14:06

T.RTitleUserPersonal
Name
DateLines
1047.1TELFON::MAILMANSteve MailmanFri Oct 11 1996 18:064
1047.2...but I don't want a console applicationKZIN::HUDSONThat's what I thinkWed Oct 16 1996 08:5512
1047.3METALX::SWANSONWed Oct 16 1996 15:116
1047.4thanks!KZIN::HUDSONThat's what I thinkThu Oct 17 1996 10:418
1047.5some codeCANDOO::GRIEBThu Oct 17 1996 12:4783
1047.6METALX::SWANSONThu Oct 17 1996 20:5527
1047.7KZIN::HUDSONThat's what I thinkWed Oct 23 1996 14:5613
1047.8TALLIS::HERDEGMark HerdegThu Oct 24 1996 14:494
1047.9KZIN::HUDSONThat's what I thinkFri Oct 25 1996 08:047
1047.10PCBUOA::BAYJJim, PortablesMon Jun 02 1997 21:5410
    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
    
1047.11PCBUOA::BAYJJim, PortablesWed Jun 04 1997 19:389
    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
    
1047.12Console Application != DOS ApplicationSPELNK::curlessWed Jun 04 1997 20:4310
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