www.delorie.com/archives/browse.cgi | search |
From: | DavMac AT iname DOT com (Davin McCall) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Need help with class stuff |
Date: | Mon, 19 Jul 1999 04:39:02 GMT |
Organization: | Monash Uni |
Lines: | 16 |
Distribution: | world |
Message-ID: | <3792ab60.19410885@newsserver.cc.monash.edu.au> |
References: | <TnNj3.667$3C2 DOT 65692 AT wagner DOT videotron DOT net> |
NNTP-Posting-Host: | damcc5.halls.monash.edu.au |
X-Trace: | towncrier.cc.monash.edu.au 932359134 16859 130.194.198.138 (19 Jul 1999 04:38:54 GMT) |
X-Complaints-To: | abuse AT monash DOT edu DOT au |
NNTP-Posting-Date: | 19 Jul 1999 04:38:54 GMT |
X-Newsreader: | Forte Free Agent 1.1/32.230 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Pointers to non-static member functions take a "hidden" parameter, which is the object on which they are to operate. So, to declare a pointer to a member function, you do: <return-type> (<class-name>::*<pointer-name>)(<argument-list>); for example, your: > void (*Action)(); // my pointer Should be: void (Test::*Action)(); Davin. __________________________________________________________ *** davmac - sharkin'!! davmac AT iname DOT com *** my programming page: http://yoyo.cc.monash.edu.au/~davmac/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |