C++ Cast error

Started by
10 comments, last by wqking 13 years, 8 months ago
The layout of a pointer to member function is completely compiler specific and may not even include the address of the member function. What you are trying to do is impossible in standard C++.
Advertisement
OP, you need to know a little bit more on code hook.
Google will help you.
Just a hint, you need to use raw C function to hack, or use some assembly.
This topic is out of C++.

https://www.kbasm.com -- My personal website

https://github.com/wqking/eventpp  eventpp -- C++ library for event dispatcher and callback list

https://github.com/cpgf/cpgf  cpgf library -- free C++ open source library for reflection, serialization, script binding, callbacks, and meta data for OpenGL Box2D, SFML and Irrlicht.

This topic is closed to new replies.

Advertisement