float __stdcall (*pFunc)(float a, float b) = (float (__stdcall *)(float,float))0x411280;
How to declare a function pointer with calling convention? The
__fastcall is the optimized one (fastest calling convention) but not used for an unknown reason
__fastcall
Try:
int (__fastcall *myfunction)(int,float);