请教关于DialogBox的用法的??
int WINAPI _tWinMain(HINSTANCE hinstExe, HINSTANCE, PTSTR pszCmdLine, int) {
CToolhelp::EnableDebugPrivilege(TRUE);
DialogBox(hinstExe, MAKEINTRESOURCE(IDD_PROCESSINFO), NULL, Dlg_Proc);
CToolhelp::EnableDebugPrivilege(FALSE);
return(0);
}
在上面的程序出现这样的错误!请高手指教!!谢谢!!
E:\project\04-ProcessInfo\ProcessInfo.cpp(377) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'
None of the functions with this name in scope match the target type
Error executing cl.exe.
04 ProcessInfo.exe - 1 error(s), 0 warning(s)
问题点数:20、回复次数:2Top
1 楼daryl715(上善若水)回复于 2002-02-02 22:59:58 得分 0
关注中Top
2 楼lhj(努力加油)回复于 2002-02-02 23:03:41 得分 20
你的Dlg_Proc定义错误
BOOL CALLBACK DialogProc(
HWND hwndDlg, // handle to dialog box
UINT uMsg, // message
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);
Top




