I'm trying to write a patch and need to pass in a new version of an existing member function. I need the absolute address of the new member function. So far I've tried simply:
int address = ClassName::Func;
'type cast' : cannot convert from 'void (__thiscall ClassName::*)(class Param1 &,const class Param2 &)' to 'int'
Does the function need to be static for this to work and am I getting tripped up by indirection or function tables?