[Pyrex] compiler requires explicit cast?
horace
horace3d at gmail.com
Fri Jun 26 06:49:54 CEST 2009
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.
thanks for your help!
>
>
> --
> Greg
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.copyleft.no/pipermail/pyrex/attachments/20090626/7d41ac53/attachment.html>
More information about the Pyrex
mailing list