pav
New member
hey everybody.
I'm using VS2005, and when compiling this function :
i get this error :
if i add a type cast ( (LPCWSTR) ) before the "Host Application", it compiles and runs, but then all of the text on my created window is written in squares ( like this : ▄ ▄ ▄ ▄ ▄ ) instead of letters.
Can i somehow change it back to the way it was in VS2003? where the function would not expect a "LPCWSTR" but a regular "LPSTR"???
I'm using VS2005, and when compiling this function :
Code:
WNDCLASSEX WindowClass = {sizeof(WNDCLASSEX), CS_CLASSDC, EntryMessageHandler, 0, 0, GetModuleHandle(NULL),
NULL, NULL, NULL, NULL, "Host Application", NULL};
i get this error :
Code:
Error 1 error C2440: 'initializing' : cannot convert from 'const char [17]' to 'LPCWSTR'
if i add a type cast ( (LPCWSTR) ) before the "Host Application", it compiles and runs, but then all of the text on my created window is written in squares ( like this : ▄ ▄ ▄ ▄ ▄ ) instead of letters.
Can i somehow change it back to the way it was in VS2003? where the function would not expect a "LPCWSTR" but a regular "LPSTR"???