问题描述:
BaseClasses\cprop.cpp(119) : error C2664:GetDialogSize' : cannot convert parameter 2 from
' long(struct HWND__ *,unsigned int,unsigned int,long)' to
'int (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'
最后解决方法:
将static INT_PTR CALLBACK DialogProc(HWND hwnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam);
改为:static int CALLBACK DialogProc(HWND hwnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam);
其中stdcall为调用方式。