[Dev-C++] Re: 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-12 20:30:20
|
I still got the same error.
Any ideas?
Fl=E1vio.
10/02/02 15:41:49, "Benjamin Wheeless" <ben...@ho...> wrote:
>
>
> From: "Benjamin Wheeless" <ben...@ho...>
> To: fla...@ne..., dev...@li...
>
> Subject:Re: [Dev-C++] ANSI C++ forbids implicit conversion from `void =
*' in
> argument passing
> Date: Sun, 10 Feb 2002 13:41:49 -0500
>
>
>
>
> Flavio,
>
> Have you tried replacing the "0" with a default flag such as:
> LR_DEFAULTCOLOR
>
>
> LR_DEFAULTCOLOR is just a default flag that really doesn't do anything
> except assure that your bitmap or image is loaded non-black and white.
>
> I hope that helps out.
>
>
> Benjamin Wheeless
> Network Systems - Delta Airlines, Inc.
> Atlanta, GA - USA 30320
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> >From: Flavio de Souza
> >To: Dev-cpp
> >Subject: [Dev-C++] ANSI C++ forbids implicit conversion from `void *'=
in
> argument passing=20
> >Date: Sun, 10 Feb 2002 15:41:07 -0300=20
> >=20
> >=20
> >I am trying to compile a windows program and I am getting the followi=
ng
> compiler error:=20
> >=20
> > ANSI C++ forbids implicit conversion from `void *' in argument passi=
ng=20
> >=20
> >This error occurs two times in the following piece of code where I ha=
ve the
> value "0" (see below).=20
> >=20
> >void WinClass::SetResIcons (int resId)=20
> >{=20
> > _class.hIcon =3D reinterpret_cast (=20
> > ::LoadImage (=20
> > _class.hInstance,=20
> > MAKEINTRESOURCE (resId),=20
> > IMAGE_ICON,=20
> > ::GetSystemMetrics (SM_CXICON),=20
> > ::GetSystemMetrics (SM_CYICON),=20
> > 0)); <--------------------------------------------------------------=
------
> ----------where i got the error=20
> > // Small icon can be loaded from the same resource=20
> > _class.hIconSm =3D reinterpret_cast (=20
> > ::LoadImage (=20
> > _class.hInstance,=20
> > MAKEINTRESOURCE (resId),=20
> > IMAGE_ICON,=20
> > ::GetSystemMetrics (SM_CXSMICON),=20
> > ::GetSystemMetrics (SM_CYSMICON),=20
> > 0)); <--------------------------------------------------------------=
------
> ----------where i got the error=20
> >=20
> >}=20
> >=20
> >Does anyone know a possible cause? What should I do to compile it
> correctly?=20
> >=20
> >Please, help me.=20
> >=20
> >=20
> >Flavio de Souza=20
> >fla...@ne...=20
> >ICQ:78458203=20
> >Sert=E3ozinho - SP - Brasil=20
> >=20
> >=20
> >=20
> >_______________________________________________=20
> >Dev-cpp-users mailing list=20
> >Dev...@li...=20
> >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20
>
>
>
> Send and receive Hotmail on your mobile device: Click Here
Flavio de Souza
fla...@ne...
ICQ:78458203
Sert=E3ozinho - SP - Brasil
|