[Pyrex] compiler requires explicit cast?

horace horace3d at gmail.com
Fri Jun 26 08:46:44 CEST 2009


On Fri, Jun 26, 2009 at 6:49 AM, horace <horace3d at gmail.com> wrote:

>
>
> On Fri, Jun 26, 2009 at 3:39 AM, Greg Ewing <greg.ewing at canterbury.ac.nz>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.
>




hm... all HINSTANCE definitions i find in the windows sdk are void *.
here it is void too:
http://msdn.microsoft.com/en-us/library/aa383751(VS.85).aspx

any other ideas?





>
> thanks for your help!
>
>
>
>>
>>
>> --
>> Greg
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.copyleft.no/pipermail/pyrex/attachments/20090626/fe8d067a/attachment.html>


More information about the Pyrex mailing list