roca robin wrote:
MyHandle = FindWindow((wchar_t*)"Properties",NULL);
You are type-casting a narrow char[] literal to a wide wchar_t*
pointer. You can't do that. To specify a wide string literal, you
need to use the 'L' prefix instead:
MyHandle = FindWindow(L"Properties",NULL);
HWND Find = ::FindWindowEx(0, 0, (wchar_t*)"Properties", 0);
Same here, too:
HWND Find = ::FindWindowEx(0, 0, L"Properties", 0);
Either way, make sure the functions are not returning NULL before you
call SendMessage().
--
Remy Lebeau (TeamB)
Connect with Us