Compiler Error C2152

'identifier' : pointers to functions with different attributes

An attempt was made to assign a pointer to a function declared with one calling convention (__cdecl, __fortran, __pascal, or __fastcall) to a pointer to a function declared with a different calling convention.