[Dev-C++] ANSI C++ forbids implicit conversion from `void *' in argument passing
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Flavio de S. <fla...@ne...> - 2002-02-10 17:53:08
|
I am trying to compile a windows program and I am getting the following c=
ompiler error:
ANSI C++ forbids implicit conversion from `void *' in argument passing
This error occurs two times in the following piece of code where I have t=
he value "0" (see below).
void WinClass::SetResIcons (int resId)
{
_class.hIcon =3D reinterpret_cast<HICON> (
::LoadImage (
_class.hInstance,=20
MAKEINTRESOURCE (resId),=20
IMAGE_ICON,=20
::GetSystemMetrics (SM_CXICON),
::GetSystemMetrics (SM_CYICON),
0)); <-------------------------------------------------------=
-----------------------where i got the error
// Small icon can be loaded from the same resource
_class.hIconSm =3D reinterpret_cast<HICON> (
::LoadImage (
_class.hInstance,=20
MAKEINTRESOURCE (resId),=20
IMAGE_ICON,=20
::GetSystemMetrics (SM_CXSMICON),
::GetSystemMetrics (SM_CYSMICON),
0)); <-------------------------------------------------------=
-----------------------where i got the error
}
Does anyone know a possible cause? What should I do to compile it correct=
ly?
Please, help me.
Flavio de Souza
fla...@ne...
ICQ:78458203
Sert=E3ozinho - SP - Brasil
|