TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: CHRISTOPHER BUTLER
from: ADAM MAJER
date: 1997-11-15 14:11:00
subject: `Use :: to get the addres

Sorry but I'm new to this echo and I've missed this discussion. Could
you re-post the message about taking addresses of member functions. I
know the following
void (*pointer)();
pointer = TClass::member; <- this produces an error
What var. should I use to capture the pointer of a member funciton?
And I'm not looking after static functions but virtual and others that
exist more than once in memory. For example, how can I take a pointer
to the following function and call it from that pointer? Thanx.
class Boo : public TWindow
{
        *
        *
        *
        void TempFunction();   <- non static
};
--- FMail 0.92
 # SLMR 2.1 # Ivo Andric - Yugoslavia's First Nobel Laureate
---------------
* Origin: The Programmer's Oasis on FIDONET! (1:348/203)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.