I am trying to create a (32-bit) DLL to inject into a target process.My DLL should call a function inside the original process. So far nothing special, however the target function is using the thiscall calling convention.I am trying to use my own fake class object. The method does nothing more then setting a few variables in this class object.My attempt:class HashClass{public:    byte data[1024];    LPVOID HashFunc(float, char, char);};typedef LPVOID (HashClass::*HASHFUNC)(float, char, char);HASHFUNC *HashFunc = (HASHFUNC *) 0xD34DB33F;void CallHashFunction(){   HashClass *hashClass = new HashClass();   (hashClass->*HashFunc)(1.0f, 'a', 'b');  // Getting an error here}What is the best and easiest method for this?Errors i am getting:Error   1   error C2297: '.*' : illegal, right operand has type 'HASHFUNC *'        2   IntelliSense: expression must have pointer-to-member type
Call a thiscall method from an injected DLL
dll injection;calling conventions