From: "Rob de Bijl" Newsgroups: comp.os.msdos.djgpp Subject: Interrupt programming in DJGPP Date: Sun, 31 Oct 1999 09:57:23 +0100 Organization: WorldOnline News server Lines: 98 Message-ID: <7vgvo9$if$1@news.worldonline.nl> NNTP-Posting-Host: vp205-6.worldonline.nl Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0008_01BF2386.5454D9E0" X-Trace: news.worldonline.nl 941359689 591 195.241.205.6 (31 Oct 1999 08:48:09 GMT) X-Complaints-To: newsmaster AT worldonline DOT nl NNTP-Posting-Date: 31 Oct 1999 08:48:09 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com This is a multi-part message in MIME format. ------=_NextPart_000_0008_01BF2386.5454D9E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello everybody, I'm new to DJGPP, however I have some experience in C-programming. I'm trying to convert a program to DJGPP C format. I run into problems = when I try to compile the following declaration:=20 void interrupt (*oldlptisr)(); It gives me he following errors:=20 Error: parse error before '*' Error: 'interrupt' declared as a function returning a function In the program it is used as follows:=20 oldlptisr =3D getvect(lptP.intNo); How do I convert the above line so that DJGPP understands it? Does any = of you gurus have a tip for me? Also, can any of you point me to a place = where I can learn more about interrupt programming for DOS using DJGPP? It would help me a lot. Thanks Rob de Bijl ------=_NextPart_000_0008_01BF2386.5454D9E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello everybody,
 
I'm new to DJGPP, however I have some = experience in=20 C-programming.
 
I'm trying to convert a program to = DJGPP C format.=20 I run into problems when I try to compile the following declaration:=20
 
void interrupt = (*oldlptisr)();
 
It gives me he following errors: =
 
Error: parse error before = '*'
Error: 'interrupt' declared as a = function returning=20 a function
 
 
In the program it is used as follows: =
 
oldlptisr =3D = getvect(lptP.intNo);
 
How do I convert the above line so that = DJGPP=20 understands it? Does any=20 of you gurus have a tip for me? Also, can=20 any of you point me to a place where I can learn more about interrupt=20 programming for DOS using DJGPP?
 
It would help me a lot.
 
Thanks
 
Rob de Bijl
 
------=_NextPart_000_0008_01BF2386.5454D9E0--