Thread: Header file for int86() function

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    98

    Header file for int86() function

    I need help with the int86() function(Used with registers). This old book I have on Turbo C++ doesn't show which header file to use. I am using Microsoft Visual C++ 6.0 on Windows XP. Does anybody know which header file I must use?
    BTW, it returns the following error: test.obj : error LNK2001: unresolved external symbol _int86.
    Thanks

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    bios.h or dos.h

    But you'd be SOL because the library is required too, and MSVC6 doesn't have it -- nor will any modern compiler. And WinXP may not like it anyway even if you do have the library.

    That's the thing with stuff that tells you how to use Turbo C++ for DOS, you can use it to learn Turbo C++ for DOS.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > I am using Microsoft Visual C++ 6.0 on Windows XP.
    Then you're out of luck - you're not using a 16 bit compiler, and you're not using a 16-bit OS.

    Find out what the interrupt did, then go read msdn.microsoft.com and find the equivalent win32 API function which does the same.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    98
    Thanks for the help

  5. #5
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Most DOS interrupts are still fully functional in a DOS session. However the API can do the same task via a 32-bit driver. Take Salem's advice and find the function in the API that does the same thing.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  3. <Gulp>
    By kryptkat in forum Windows Programming
    Replies: 7
    Last Post: 01-14-2006, 01:03 PM
  4. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  5. error LNK2001: unresolved external symbol
    By Unregistered in forum C Programming
    Replies: 12
    Last Post: 07-12-2002, 08:45 PM