A Question about ctypes and a function f(void **)
sapsi
saptarshi.guha at gmail.com
Mon Aug 11 15:03:22 EDT 2008
Hello,
I have a C function f(void**,int *), in which it writes some
information (it is a RGB32 image).
Here is what i do
rowlength=c_int()
data=c_void_p()
d=pointer(data)
f(d,byref(rowlength)
The call works (no segmentation fault), now how do i access the data
in d? Because i need to pass it to a another function QImage that
takes void* as its first parameter.
If i do d.contents i get c_void_p(3067478024L)
All suggestions welcome.
Regards
Saptarshi
More information about the Python-list
mailing list