delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/10/03:04:28

Message-ID: <382917AA.256A0891@home.com>
From: Robin Johnson <robbat2 AT home DOT com>
Organization: Orbit Computers
X-Mailer: Mozilla 4.5 [en]C-AtHome0405 (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: calling a pointer to a function
Lines: 36
Date: Wed, 10 Nov 1999 06:58:41 GMT
NNTP-Posting-Host: 24.113.36.103
X-Complaints-To: abuse AT home DOT net
X-Trace: news1.rdc1.bc.home.com 942217121 24.113.36.103 (Tue, 09 Nov 1999 22:58:41 PST)
NNTP-Posting-Date: Tue, 09 Nov 1999 22:58:41 PST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

I used to do something in Pascal, and i was wondering what the C++
conversion of it was:
{begin pascal code}
Type tProc = Procedure(Num : integer);

Procedure Do1(Num : integer);
begin
end;

Procedure Do2(Num : integer);
begin
end;

Procedure CallOne(aProc : tProc)
var x : integer;
begin
 x := 1;
 aProc(1);
end;
{end pascal code}
how to do this in C++? namely DJGPP, with DPMI.
Can anybody help?
--
Robin Hugh Johnson
"Robbat2"
"Of all deceptions, self-deception is the worst"
- Plato
E-Mail     : robbat2 AT hotmail DOT com
ICQ#       : 30269588 or 41961639
Mail Files : robbat2 AT home DOT com
Home Page  : http://robbat2.cjb.net
Time Zone  : Pacific Daylight (GMT - 8)


- Raw text -


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