A Question about ctypes and a function f(void **)

S

sapsi

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top