www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/16/12:16:30

Newsgroups: comp.os.msdos.djgpp
From: malyon AT netcom DOT com (Restiana Jade)
Subject: Re: Allegro Timers
Message-ID: <malyonE43Cx4.825@netcom.com>
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
References: <fgtLCdAvIM3yEwIZ AT flag DOT demon DOT co DOT uk>
Date: Thu, 16 Jan 1997 08:00:39 GMT
Lines: 17
Sender: malyon AT netcom23 DOT netcom DOT com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Moo-Juice (Ben AT flag DOT demon DOT co DOT uk) wrote:
: Hi,

: I've been having some trouble installing timers in Allegro, using a
: public class member function as the argument.

: Supplying a standard function as the parameter works, but if I pass a
: class member function it doesn't like it at all.  Is there a work around
: for this?

: -- 
: Moo-Juice

  The problem is that a class member function has an implicit extra
parameter that a global function doesn't have: the "this" pointer. Declare
the member function as being "static" and it won't be passed a this pointer,
which will make it equivalent to a global function.

- Raw text -


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