TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: CHRISTOPHER BUTLER
from: STEVEN LEI
date: 1997-11-09 01:41:00
subject: `Use :: to get the addres

While Steven was reading other messages, Christopher Butler wrote:
 CB> N Hello All!
Hello Christopher...
 CB> How do I get the address of a member function?
We'll see... tests me how much I know.  :(
 CB> For example:
 CB> class foo
 CB> {
 CB>    public:
 CB>    foo();
 CB>    void interrupt myInt(...)
                // Let me suggest one subtle hint.  semicolons follow
                // class brackets
 CB> };  // <--  see?
 CB> foo::foo()
 CB> {
 CB>    _dos_setvect(0x1C, &myInt);        // Here is where I want to get
 CB>    address of             // the the member function
 CB>    myInt...               // What I've put is obviously incorrect, as
                               // TC says its wrong.. so how /do/ I do it? }
foo:foo() seems right...  try again and see if there are any errors.
                                Steven Lei
From: Las Vegas, Nevada, USA
E-mail = SpewMuffin@Juno.Com
... All generalizations are false, including this one.
___ Blue Wave/DOS v2.30 [NR]
--- PCBoard (R) v15.21/M 2
---------------
* Origin: The Board running PCBoard 15.21 (702) 221-0083 (1:209/222)

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™.