Hello Madshi,
__thiscall convention is not allowed during compile time.
Is there any workarounf on this?
__thiscall not allowed during compile time
Re: __thiscall not allowed during compile time
I'm not sure, maybe the compiler allows __thiscall only for class methods but not for simple functions? Would make sense, I guess. You could setup a dummy class so that your hook callback function and "nextHook" function variable are class methods. Or you could use inline assembler to do it all by hand (painful).