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)
|