EnumWindows(EnumWindowsProc,0)竟然报错!!
报错信息如下:
--------------------Configuration: GOHIDE_TEST1 - Win32 Debug--------------------
Compiling...
ShowListPage.cpp
E:\MY_Projects\GOHIDE_TEST1\ShowListPage.cpp(126) : error C2664: 'EnumWindows' : cannot convert parameter 1 from 'int (struct HWND__ *,unsigned long)' to 'int (__stdcall *)(struct HWND__ *,long)'
None of the functions with this name in scope match the target type
Error executing cl.exe.
Creating browse info file...
==================================代码如下=========================
EnumWindows(EnumWindowsProc,0);
BOOL CALLBACK EnumWindowsProc(HWND hwnd,DWORD lParam)
{
return TRUE;
}
我在头文件中已经声明了BOOL CALLBACK EnumWindowsProc(HWND hwnd,DWORD lParam)。
请问这样有什么问题吗??
BOOL CALLBACK EnumWindowsProc(HWND hwnd,DWORD lParam)
{
return TRUE;
}我写在了一个继承自CDialog类的类中。
先谢谢了!!!