From: "Hentie Louw" <13080555 AT narga DOT sun DOT ac DOT za> Newsgroups: comp.os.msdos.djgpp Subject: Pointers to methods Date: Sun, 29 Apr 2001 02:54:13 +0200 Organization: Adamastor Lines: 13 Message-ID: <9cfogs$9v4$1@news.adamastor.ac.za> NNTP-Posting-Host: 146.232.177.40 X-Trace: news.adamastor.ac.za 988505436 10212 146.232.177.40 (29 Apr 2001 00:50:36 GMT) X-Complaints-To: abuse AT uct DOT ac DOT za NNTP-Posting-Date: 29 Apr 2001 00:50:36 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi I am writing a GUI using classes and the GUI-routines provided by Allegro. This requires me to use pointers to procedures. It would do wonders for my code if I could have pointers to methods in my classes, but I can't seem to do it. Is it possible? Currently I have to write a small procedure that calls the method and use a pointer to that procedure. This is not very nice. Is there anyone who faced the same problem with Allegro and can provide an elegant solution? Thanks