I'm trying to make a program that changes the text of the Searh button on www. google.com ( to try and make a program that "interacts" with IE) but i'm having so problemsno matter what I do it still won't work.
Code:BOOL CALLBACK EnumAllWindows(HWND hwnd, LPARAM lparam); int main() { HWND hWnd = FindWindow(NULL,"Google - Microsoft Internet Explorer"); EnumChildWindows(hWnd,EnumAllWindows,NULL); cin.get(); } BOOL CALLBACK EnumAllWindows(HWND hwnd, LPARAM lparam) { char window_name [256]; char sClassName[50]; GetClassName(hwnd,sClassName,50); GetWindowText(hwnd,window_name,256); cout << window_name <<endl; return true; }



LinkBack URL
About LinkBacks
no matter what I do it still won't work.


