|
From: EXT-Meyer, R. J <rob...@bo...> - 2003-10-31 13:54:59
|
When compiling tutorial examples, I keep getting 'invalid conversion =
from' errors. What do they mean?
For example 'invalid conversion from 'void*' to 'CHAR*'
or 'invalid conversion from 'void*' to 'HFONT__*' occuring on this piece =
of code under WndProc:
case WM_CREATE:
{
HFONT hfDefault;
HWND hEdit;
hEdit =3D CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", "",=20
WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL | ES_MULTILINE | =
ES_AUTOVSCROLL | ES_AUTOHSCROLL,=20
0, 0, 100, 100, hwnd, (HMENU)IDC_MAIN_EDIT, GetModuleHandle(NULL), =
NULL);
if(hEdit =3D=3D NULL)
MessageBox(hwnd, "Could not create edit box.", "Error", MB_OK | =
MB_ICONERROR);
hfDefault =3D GetStockObject(DEFAULT_GUI_FONT);
SendMessage(hEdit, WM_SETFONT, (WPARAM)hfDefault, MAKELPARAM(FALSE, =
0));
}
break;
Thanks for any suggestions,
Rob
|