Code:
hInputEdit = CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", "Enter Code Here",
WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL | ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL,
0, 0, 100, 100, hwnd, (HMENU)IDC_MAIN_EDIT, GetModuleHandle(NULL), NULL);
Code:
ERROR:
1>c:\documents and settings\martin\my documents\visual studio projects\colorcode\main.cpp(39) : error C2664: 'CreateWindowExW' : cannot convert parameter 2 from 'const char [5]' to 'LPCWSTR'
I get this error when i try to compile it with Microsoft Visual Studio 8 2005. :-\ and a whole bunch of errors like that when i pass a text in quotes to a function expecting a LPCWSTR
What do i do?