Ok I have the code:
SendMessage(list, LB_DIR, DDL_DRIVES, "e:\\");
When I compile, I get:
80 wnd_mng.cpp
passing `const char *' to argument 4 of `SendMessageA(HWND__ *, unsigned int, unsigned int, long int)' lacks a cast
Ok I have the code:
SendMessage(list, LB_DIR, DDL_DRIVES, "e:\\");
When I compile, I get:
80 wnd_mng.cpp
passing `const char *' to argument 4 of `SendMessageA(HWND__ *, unsigned int, unsigned int, long int)' lacks a cast
You need a 'Type cast'
(LPARAM)DDL_DRIVES,(WPARAM)(LPSTR)"e:\\");
this converts the variable type to that used by the function.
Like
float fValue=1.1;
int iValue=0;
iValue=(int)fValue;