Thread: dos.h vs C99

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

    Lightbulb dos.h vs C99

    I was going back over some C programs from a book written for Microsoft C by The Waite Group's Robert Lafore. I tried to make some program examples from the book that utilize the <dos.h> header files but get syntax errors in that file. I also get a problem with the far keyword. Is this keyword no longer in effect or was it a microsoft specific keyword?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    > I tried to make some program examples from the book that utilize the <dos.h> header files
    > but get syntax errors in that file.
    If your OS isn't DOS, then you shouldn't need that file (chances are, you don't have it).

    > I also get a problem with the far keyword
    It's specific to 16 bit compilers - not just MS ones.
    32 bit compilers do not need this keyword.

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

    Cool

    <If your OS isn't DOS, then you shouldn't need that file (chances are, you don't have it). >

    Well yes, I do have <dos.h>, but when I use it I get synatax errors in the <dos.h> file code.
    A function in dos.h is int86 and interrupt function. I suppose interrupt isn't important anymore when using Windows98, but what API function takes it's please?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. c99
    By Nextstopearth in forum C Programming
    Replies: 8
    Last Post: 02-20-2009, 11:58 PM
  2. C89 or C99
    By talin in forum C Programming
    Replies: 6
    Last Post: 05-26-2008, 12:45 PM
  3. C99 and int main()
    By cwr in forum C Programming
    Replies: 8
    Last Post: 09-19-2005, 06:54 AM
  4. C99 support?
    By Devil Panther in forum C Programming
    Replies: 3
    Last Post: 08-22-2005, 02:07 PM
  5. My first game
    By homeyg in forum Game Programming
    Replies: 20
    Last Post: 12-22-2004, 05:25 PM