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

Reply via email to