路
路远
Unregistered / Unconfirmed
GUEST, unregistred user!
错误提示:Cannot convert 'int (__stdcall *)(void *,long)' to 'int (__stdcall *)()' (50分)<br />BOOL CALLBACK EnumWndProc(HWND, LPARAM);<br>HWND hChild;<br>int iChildClassLen;<br>TCHAR szChildClassName[10];<br>while (EnumWindows(EnumWndProc,NULL));<br>BOOL CALLBACK EnumWndProc(HWND hWnd, LPARAM lParam)<br>{<br> hChild = GetWindow(hwnd,GW_CHILD);<br> iChileClassLen = GetClassName(hChild, szChildClassName[10], 10);<br> if (strcmp(szChildClassName, TEXT("TEdit")))<br> {<br> SendMessage(hChild, WM_SETTEXT, 0, (LPARAM)"你定义的串"); <br> } <br>}<br><br> 错误提示:<br>[C++ Error] Unit1.cpp(25): E2034 Cannot convert 'int (__stdcall *)(void *,long)' to 'int (__stdcall *)()'<br>[C++ Error] Unit1.cpp(25): E2342 Type mismatch in parameter 'lpEnumFunc' (wanted 'int (__stdcall *)()', got 'int (__stdcall<br>*)(void *,long)')<br>[C++ Error] Unit1.cpp(26): E2108 Improper use of typedef 'BOOL'