Interrupt???

This is a discussion on Interrupt??? within the C++ Programming forums, part of the General Programming Boards category; I'm tryng to get a game to run with some control code I've written..... but first I'm trying to get ...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    1

    Interrupt???

    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



    Anyone????

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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 Cprogramming.com
    Replies: 0
    Last Post: 01-08-2003, 03:59 PM
  3. interrupt question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 02-08-2002, 08:25 PM
  4. interrupt handler functions in Visual C++ 6.0
    By scromer in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 01-07-2002, 06:06 PM
  5. Sound card interrupt problems
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 12-05-2001, 03:38 AM

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