Hello, thanks for reading, i usually use this method for accesing functions in executables, the code is executed from a DLL (always works, except when the function are inside of a class, even tho is public):
.h:
.cpp
That works, but i can't get it to work if the accesing function is inside of a class, i get Unhandled Exception while trying to access a function inside a class, is there a way to do it?.
Thanks
.h:
Code:
typedef int (*pgObjViewportClose) (OBJECTSTRUCT* gObj); extern pgObjViewportClose gObjViewportClose;
Code:
pgObjViewportClose gObjViewportClose = (pgObjViewportClose) 0x04F1940;
Thanks
Comment