Thread: Interrupt???

  1. #1
    Registered User
    Join Date
    Nov 2001


    I'm tryng to get a game to run with some control code I've written..... but first I'm trying to get the game to work by itself. I'm using BCB 5 and don't know what the game was written in but first error when compiling is

    "Size of 'Interrupt' is unknown or zero"

    refering to a function declaration in a headerfile

    void interrupt myInt(__CPPARGS);

    can't figure out why


  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    interrupt is a compiler specific keyword which tells the compiler that this routine will be called from an interrupt (and not by the program).

    Assuming your compiler / OS even permits you to attach code to an interrupt, the mechanism for doing so will be different - time to read those manuals.

    It's almost certainly a DOS program - which will be tricky at best to get it to work in a win32 console (or can BCB generate real DOS programs?)
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pointer within a Struct
    By Bladactania in forum C Programming
    Replies: 11
    Last Post: 04-03-2009, 10:20 PM
  2. DOS, Serial, and Touch Screen
    By jon_nc17 in forum A Brief History of
    Replies: 0
    Last Post: 01-08-2003, 04:59 PM
  3. interrupt question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 02-08-2002, 09:25 PM
  4. interrupt handler functions in Visual C++ 6.0
    By scromer in forum A Brief History of
    Replies: 1
    Last Post: 01-07-2002, 07:06 PM
  5. Sound card interrupt problems
    By VirtualAce in forum A Brief History of
    Replies: 3
    Last Post: 12-05-2001, 04:38 AM