Okay so what I am trying to do is create a base class for hooking a place in memory. Now you cannot have naked member functions so this is my idea for a work around.
The call is redirected to the block of assembly.
The block of assembly calls the "RawCallback" member function.
The raw block of assembly returns the redirected call.
So my problem is
*(int*)(AsmDest + 0x8) = (int)(this->RawCallback);
How do I get the address of a member function (in int form)? Also I plan on inheriting this base class so I need the function to grab the address of the inheriting RawCallBack. I am guessing I need to make it virtual? But the question still stands, how do you get it's address (in int form)?