Thread: 32-bit and 16-bit?

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    3

    Question 32-bit and 16-bit?

    Is there an option or switch or define in VC++ 6.0 or BC++ 5.5 (free) to have a program compiled so that it can be executed in MS-DOS? I made a program that I wanted to work on a boot disk but I get that "this program must be ran under win32" error.

  2. #2
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Yeah, just choose the Console App option. That should do it.
    1978 Silver Anniversary Corvette

  3. #3
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    I'm not sure about BC++ 5.5, but VC++ 6.0 will only do 32 bit apps.
    zen

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    3
    I tried the console app switch -- it just compiles it as a 32-bit console application. I need to compile it as a 16-bit console application.

  5. #5
    Registered User
    Join Date
    Nov 2001
    Posts
    202
    I dont know about the free version but the standard version of BC++ when you start a new project it specifies wether its a windows or Dos app. So its possible I just dont know what the switch is sorry.

  6. #6
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    DOS is now a VM (virtual machine). This means, it is not really an OS anymore. Just a shell simulation in the 32 bit environment.

    --Garfield
    1978 Silver Anniversary Corvette

  7. #7
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    he's right. If you want 16-bit code try DJGPP

  8. #8
    Blank
    Join Date
    Aug 2001
    Posts
    1,034
    djgpp is also 32 bit.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Copying 32 bits into 16 bit integer???
    By blackCat in forum C Programming
    Replies: 4
    Last Post: 02-17-2009, 10:00 AM
  2. 16 bit compilar or 32 bit compilar
    By rajkumarmadhani in forum C Programming
    Replies: 16
    Last Post: 12-04-2007, 09:48 AM
  3. Replies: 16
    Last Post: 11-23-2007, 01:48 PM
  4. 16 bit or 32 bit
    By Juganoo in forum C Programming
    Replies: 9
    Last Post: 12-19-2002, 07:24 AM
  5. 32 bit or 16 ???
    By GiraffeMan in forum C Programming
    Replies: 11
    Last Post: 04-24-2002, 12:56 PM