__thiscall not allowed during compile time

c++ / delphi package - dll injection and api hooking
Post Reply
linguanext
Posts: 4
Joined: Fri Aug 31, 2012 1:26 pm

__thiscall not allowed during compile time

Post by linguanext »

Hello Madshi,

__thiscall convention is not allowed during compile time.

Is there any workarounf on this?
madshi
Site Admin
Posts: 10766
Joined: Sun Mar 21, 2004 5:25 pm

Re: __thiscall not allowed during compile time

Post by madshi »

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).
Post Reply