I want to use a DLL in my program which has a function
void Set_Callback(Function Pointer)
The example code inserts a typedef which obiously doesn’t work with my VS C++ 2010
typedef void (SET_CALLBACK)(void far pascal (*lpfnPtr)(int));
For this line I get an syntax error ‘*’ and ‘function returns function’ error.
thanks for your help in advance
Its easier to understand and read if you break it into two typedefs:
in the first typedef,
pascalbecomes__stdcall(aspascalwas for older 16bit systems), andfarcan be dropped as it is superfluous in 32/64-bit architectures