PDA

You are currently viewing a search engine-friendly (archive) version of this page.

View Full Version : C++ FindWindow()


scatman
March 7, 2002, 11:33 pm
GRRR ive been trying to find out for a while now how to use the findwindow() function but i can never find good sites that help.

my code so far is:

#include <winuser.h>

int main()
{
FindWindow(NULL, "Ultima Online");
return 0;
}

when i execute it, it returns these errors:

error C2146: syntax error : missing ';' before identifier 'HDWP'

fatal error C1004: unexpected end of file found

Any ideas anyone? Thanks.

i2l84u00x00
June 11, 2006, 04:12 am
#include <windows.h>
int main()
{
HWND Calc;
Calc = FindWindow(NULL, "Calculator");
SetWindowText(Calc, "M4573R M0U53"); //just a bit of fun lol
Calc = 0;
return (0);
}