Originally posted by parksie
Megatron, if you're going to use LPCTSTR then you must surround the constant in _T():
Code:
SendMessage(hWnd_of_static, WM_SETTEXT, 0, (LPCTSTR)_T("MyText"));
Why the _T parksie? I have never had to use it before.