id 65256894.002682E4; Tue, 29 Feb 2000 12:30:38 +0530
Message-ID: <015001bf8282$abb8d640$3b1112ac@tcscal>
From: "Robin Chatterjee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
References: <000001bf7f00$81687f60$a20836ca@nandy> 
<[EMAIL PROTECTED]>
Subject: Re: [ilug-cal] [OFF-TOPIC]How to use getvect() in C
Date: Tue, 29 Feb 2000 12:30:21 +0530
MIME-Version: 1.0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: [EMAIL PROTECTED]
Precedence: bulk
Reply-To: [EMAIL PROTECTED]

prev is going to hold the address of the previous interrupt handler so it
has to be of type pointer to interrupt function.

----- Original Message -----
From: Shourya Sarcar <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 29, 2000 7:26 PM
Subject: Re: [ilug-cal] [OFF-TOPIC]How to use getvect() in C


> Hello Suman,
> 1. Anything below Borland C / C++ version 3.1 compiler for DOS is
> inherently unreliable. Upgrade to 3.1 if you are working in DOS.I had a
> similar problem with BC version 1.0. Are you using TC ? They suck :(
>
> 2. There is a typo, I guess. No mention of variable prev in the
> declarations. This is _not_ causing your problem.
>
> 3. I do not have access to BC right away but reading the header
> file dos.h would be of help. Tip : Do not trust the documentation/help
> pages ;)
>
> Regards
> Shourya
>
>
> It was on Wed, 23 Feb 2000, Mr. Suman Nandy typed in this..
> >I am trying to catch the interrupt 9 ( keyboard interrupt ) with the
> >following c code.
> >
> >#include "dos.h"
> >void interrupt (*p)();
> >void interrupt do();
> >void main()
> >{
> >    prev=getvect( 9 );
> >    setvect( 9, do);
> >    ...
> >}
> >void interrupt do()
> >{
> >    .../*to do when the interrupt is caught*/
> >    ..
> >}
> >
> >the turbo c++ compiler is pointing to the line prev=getvect(9,do) and
> >telling that unsigned long int can not be converted to void
interrupt(*)();
> >
> >please help.
> >
> >suman
> >
> >
> >--
> >To unsubscribe, send mail to [EMAIL PROTECTED] with the body
> >"unsubscribe ilug-cal" and an empty subject line.
> >FAQ: http://www.ilug-cal.org/help/faq_list.html
> --
> _______________________________________________________________
> Shourya Sarcar        <[EMAIL PROTECTED]>  <Tel:91-033-4710477>
> Department of Computer Science and Engineering
> Jadavpur University    Calcutta, India 700 032
>
> All the world's a stage..
> And I am acting tonight
> C - the difference : http://www.eskimo.com/~scs/C-faq/top.html
>
>
> --
> To unsubscribe, send mail to [EMAIL PROTECTED] with the body
> "unsubscribe ilug-cal" and an empty subject line.
> FAQ: http://www.ilug-cal.org/help/faq_list.html



--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/help/faq_list.html

Reply via email to