EnumWindows这个函数怎么老是错误
void CWesenDlg::OnButton1()
{//以下这行错误:1'EnumWindowsProc'undeclared identifier
BOOL bl=::EnumWindows(EnumWindowsProc,(LPARAM)this);
}
//以下这行错误:'EnumWindowsProc' redifition ;different type monifiers
BOOL CALLBACK EnumWindowsProc( HWND hwnd,LPARAM lParam)
{
//内容略
}
怎么编译时老是错误呢?
1'EnumWindowsProc'undeclared identifier
2. 'EnumWindowsProc' redifition ;different type monifiers
我明明定义了,而且是用全局定义的
谁来帮我解答