SetWindowText function error
-
Hi all
#include HWND handle; int main () { handle = GetForegroundWindow(); SetWindowText(handle,"Hello!"); return 0; }
When i compile my program it's not working and give me the error say Cannot convert parameter 2 from char[7] to LPCWSTR in SetWindowText function. Regards -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-* -
Hi all
#include HWND handle; int main () { handle = GetForegroundWindow(); SetWindowText(handle,"Hello!"); return 0; }
When i compile my program it's not working and give me the error say Cannot convert parameter 2 from char[7] to LPCWSTR in SetWindowText function. Regards -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-*Its SetWindowText(handle**,_T**("Hello!"));
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
Hi all
#include HWND handle; int main () { handle = GetForegroundWindow(); SetWindowText(handle,"Hello!"); return 0; }
When i compile my program it's not working and give me the error say Cannot convert parameter 2 from char[7] to LPCWSTR in SetWindowText function. Regards -*-*-*-*-*-*-*-*-* To Be Or Not To Be (KARFER) -*-*-*-*-*-*-*-*-*You project settings are set to Unicode but you're using ANSI strings.
Steve
-
Its SetWindowText(handle**,_T**("Hello!"));
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )