怎么调用嵌套DLL中的回调函数
我用DLL嵌套另一个DLL,调用嵌套DLL中的回调函数呢.
下面这个嵌套DLL的.H文件
我用的是VC2008; 但是怎么调用另一个DLL中的回调函数呢.到声名这个地方就出错了.
#ifdef MULTITOUCHSDK_EXPORTS
#define MULTITOUCHSDK_API __declspec(dllexport)
#else
#define MULTITOUCHSDK_API __declspec(dllimport)
#endif
typedef void (WINAPI *MultiTouchCallback) (const PointData *, int);
MULTITOUCHSDK_API int StartComDevice(int nport, BOOL bTransform);
MULTITOUCHSDK_API int StopComDevice();
MULTITOUCHSDK_API int RegistCallback(MultiTouchCallback);
MULTITOUCHSDK_API void SetCalibData(DWORD x1, DWORD y1, DWORD x2, DWORD y2, DWORD x3, DWORD y3, DWORD x4, DWORD y4);
出现这样的错误.求个位大哥来看看,郁闷我半天 了.
error C2143: syntax error : missing ')' before '*'
error C2143: syntax error : missing ';' before '*'
error C2059: syntax error : ')'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int