[Pyrex] compiler requires explicit cast?

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Jun 26 03:39:14 CEST 2009


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.

-- 
Greg



More information about the Pyrex mailing list