[PyKDE] Help:Anybody give me an example how to use sip.voidptr object?
Phil Thompson
phil at riverbankcomputing.co.uk
Wed Oct 1 16:07:00 BST 2003
On Wednesday 01 October 2003 2:57 pm, Shunming Fang wrote:
> Phil, I checked PIL, there, there is a method fromstring(mode, data)
> geting data from string, but when I used it( pass the voidptr), it said it
> is invalid type. I think the data type is not memeory address, maybe
> string. So there is no example code to show how to use voidptr object?
> even I write a c++ extention, I still need know howto.
> Thanks
If your C++ extension takes a memory address as an integer then convert the
voidptr to an integer using int().
Phil
More information about the PyQt
mailing list