Re: compiler requires explicit cast?
horace <[email protected]> Fri, 26 Jun 2009 06:49:54 +0200
| Newsgroups | gmane.comp.python.pyrex |
|---|---|
| Message-ID | <[email protected]> |
--===============1641579788== Content-Type: multipart/alternative; boundary=00504502d7e85c85e9046d3912b9 --00504502d7e85c85e9046d3912b9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Fri, Jun 26, 2009 at 3:39 AM, Greg Ewing <[email protected]>wrote: > horace wrote: > > error C2664: 'LoadIconA' : cannot convert parameter 1 from 'void *' to >> 'HINSTANCE' >> >> cdef extern from "windows.h": >> ctypedef void *PVOID >> ctypedef PVOID HANDLE >> ctypedef HANDLE HINSTANCE >> > > It looks like windows.h is not defining HINSTANCE as void *. > You'll need to find out how it is defined and do something > compatible in Pyrex. hm... yeah, i found the definition with google but now i checked again and it seems that it sometimes gets defined differently. i will try to find it on my harddisk but this could be a bit tricky since it doesn't seem to be defined in windows.h. thanks for your help! > > > -- > Greg > --00504502d7e85c85e9046d3912b9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <br><br><div class=3D"gmail_quote">On Fri, Jun 26, 2009 at 3:39 AM, Greg Ew= ing <span dir=3D"ltr"><<a href=3D"mailto:[email protected]">gr= [email protected]</a>></span> wrote:<br><blockquote class=3D"gma= il_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0= pt 0pt 0.8ex; padding-left: 1ex;"> horace wrote:<br> <br> <blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, = 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class=3D"im"= > error C2664: 'LoadIconA' : cannot convert parameter 1 from 'voi= d *' to 'HINSTANCE'<br> <br></div><div class=3D"im"> cdef extern from "windows.h":<br> =A0 =A0ctypedef void *PVOID<br> =A0 =A0ctypedef PVOID HANDLE<br></div> =A0 =A0ctypedef HANDLE HINSTANCE<br> </blockquote> <br> It looks like windows.h is not defining HINSTANCE as void *.<br> You'll need to find out how it is defined and do something<br> compatible in Pyrex.</blockquote><div><br><br>hm... yeah, i found the defin= ition with google but now i checked again and it seems that it sometimes gets defined differently. i will try to find it on my harddisk but this could be a bit tricky since it doesn't seem to be defined in windows.h.<br> <br> thanks for your help!<br><br>=A0</div><blockquote class=3D"gmail_quote" sty= le=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex;= padding-left: 1ex;"><br> <br> -- <br><font color=3D"#888888"> Greg<br> </font></blockquote></div><br> --00504502d7e85c85e9046d3912b9-- --===============1641579788== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline _______________________________________________ Pyrex mailing list [email protected] http://lists.copyleft.no/mailman/listinfo/pyrex --===============1641579788==--