Can anyone help with this compile error. I am trying to convert a
MSVisual program and I am getting this error from this code:
void WinClass::SetResIcons (int resId)
{
_class.hIcon = reinterpret_cast <HICON> (
::LoadImage (
_class.hInstance,
MAKEINTRESOURCE (resId),
IMAGE_ICON,
::GetSystemMetrics (SM_CXICON),
::GetSystemMetrics (SM_CYICON),
0));
// this is line 76
// Small icon can be loaded from the same resource
_class.hIconSm = reinterpret_cast<HICON> (
::LoadImage (
_class.hInstance,
MAKEINTRESOURCE (resId),
IMAGE_ICON,
::GetSystemMetrics (SM_CXSMICON),
::GetSystemMetrics (SM_CYSMICON),
0));
}
76 winmaker.cpp
ANSI C++ forbids implicit conversion from `void *' in argument passing
Thanks
lon...@ju...
|