Project Type for DOS Application

This is a discussion on Project Type for DOS Application within the C++ Programming forums, part of the General Programming Boards category; Hi, I am using Microsoft Visual C++ 6.0 Enterprise Edition on Windows 2000. What project type do I choose for ...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    14

    Project Type for DOS Application

    Hi,

    I am using Microsoft Visual C++ 6.0 Enterprise Edition on Windows 2000.

    What project type do I choose for creating a true DOS application, that can run for instance when the system is booting?

    I have tried Win32 Console Application but it fails to execute within DOS. When I am refering to DOS I am talking about "TRUE" DOS, not simply a console window in Windows.

    Thank you very much in advance.
    VD
    Set VBDeveloper = New VisualCDeveloper

  2. #2
    Registered User
    Join Date
    May 2002
    Posts
    317
    Last time I checked their wasn't really a 'DOS' anymore. Microsoft has pretty much gotten rid of that. So unless you still have a copy of MS-Dos ver (whatever the latest version before Win '95 was) I believe it was 6.22, you never really enter the dos environment. When you choose to 'reboot' in msdos you actually are just running the console in full screen. As per writing a program that runs when your system starts you'll have to use some assembly to do that efficiently. Pretty much what you due is put a pointer in the boot sector which references your program. Now mind you this is not the job for the faint of heart.
    Last edited by Traveller; 05-04-2002 at 06:44 PM.

  3. #3
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    shutup traveller.
    anyway, Visual C++ does not compile DOS. It only compiles windows applications and console.
    DOS programs can be ran on windows, but with sound gone and some 3d garbage.
    In order to compile a DOS program, you need a DOS Compiler. Borland C++ 3.1 is DOS, and so is gcc.
    http://www.angelfire.com/linux/xterria/Borland.zip

  4. #4
    Registered User
    Join Date
    May 2002
    Posts
    317
    That's not very nice. By the way I wasn't being condencending. The specific question was, as I read it, writing a program that ran while the computer was booting. This however is not a 'true' dos environment and I was simply trying to point that out. If I was sounding like a jackass I post my apologies for all to see.

  5. #5
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    lol sorry

  6. #6
    Registered User Dual-Catfish's Avatar
    Join Date
    Sep 2001
    Posts
    802
    I'm pretty sure you're in a true DOS environment when the computer is booting. No matter what OS you have loaded on.

  7. #7
    Registered User
    Join Date
    May 2002
    Posts
    317
    Are we talking DOS, like DOS 6.22 with Windows ver 3.11? Or are we talking DOS like Disk Opertaing System?(Again just a question, not trying to be a jackass or anything )

  8. #8
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,799
    I have tried Win32 Console Application but it fails to execute within DOS.
    DOS is a 16-bit operating system, a Win32 Console Application is 32-bit and CANNOT be run in DOS.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  9. #9
    Registered User Liam Battle's Avatar
    Join Date
    Jan 2002
    Posts
    114
    ok uhm 32-bits dont work on a true 16-bit system...

    32 is greater than 16, hence your bit sizes are not matched...

    16 is not supported anymore, and you would need to use a borland compiler to do it. (or another supported 16 bit compiler).
    LB0: * Life once school is done
    LB1: N <- WakeUp;
    LB2: N <- C++_Code;
    LB3: N >= Tired : N <- Sleep;
    LB4: JMP*-3;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sorting the matrix question..
    By transgalactic2 in forum C Programming
    Replies: 47
    Last Post: 12-22-2008, 02:17 PM
  2. The project type is not supported by this installation
    By puk284 in forum C# Programming
    Replies: 8
    Last Post: 11-19-2008, 08:27 AM
  3. how do you resolve this error?
    By -EquinoX- in forum C Programming
    Replies: 32
    Last Post: 11-05-2008, 03:35 PM
  4. failure to import external C libraries in C++ project
    By nocturna_gr in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2007, 02:49 PM
  5. typename madness
    By zxcv in forum C++ Programming
    Replies: 4
    Last Post: 05-13-2006, 10:35 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21