www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/31/09:04:18

From: "Rob de Bijl" <rdebijl AT worldonline DOT nl>
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
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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hello everybody,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm new to DJGPP, however I have some =
experience in=20
C-programming.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>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
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>void interrupt =
(*oldlptisr)();</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>It gives me he following errors: =
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Error: parse error before =
'*'</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Error: 'interrupt' declared as a =
function returning=20
a function</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>In the program it is used as follows: =
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>oldlptisr =3D =
getvect(lptP.intNo);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>How do I convert the above line so that =
DJGPP=20
understands it? </FONT><FONT face=3DArial size=3D2><FONT face=3DArial =
size=3D2>Does any=20
of you gurus have a tip for me? </FONT></FONT><FONT face=3DArial =
size=3D2>Also, can=20
any of you point me to a place where I can learn more about interrupt=20
programming for DOS using DJGPP?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>It would help me a lot.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Rob de Bijl</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0008_01BF2386.5454D9E0--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019