When I understand your question right, this example will be the answer.
PyObject*myPyType;
// convert a PyObject pointer to MyPythonType-Pointer object
// cppType will be the known CPP-Type which is the base of MyPythonType
myPyType = sipBuildResult(NULL,"M",cppType,sipClass_MyPythonType)
I got problems by passing an std::list by Value (and even if it was
passed by Reference) to a c++-method. When I'm returning the list
directly it works. (See the code below). What is going on there?
See the source below - the first is how to execute it:
_
*zgh!rg!* That's it - I just detected it by myself. thx!
___
PyKDE mailing listPyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
There seams be something wrong with the copies of the example files
from
http://www.river-bank.demon.co.uk/docs/sip/sipref.html#a-simple-c-example
Is there a place to download the small file of this example to make
sure
nothing of mine are wrong?
This is whar I did - I run:
sip -c . word
On Tuesday 11 October 2005 1:26 pm, elho wrote:
There seams be something wrong with the copies of the example files from
http://www.river-bank.demon.co.uk/docs/sip/sipref.html#a-simple-c-example
Is there a place to download the small file of this example to make sure
nothing of mine are wrong
Phil Thompson wrote:
On Tuesday 11 October 2005 1:26 pm, elho wrote:
There seams be something wrong with the copies of the example files from
http://www.river-bank.demon.co.uk/docs/sip/sipref.html#a-simple-c-example
Is there a place to download the small file of this example to make sure
There seams be something wrong with the copies of the example files from
http://www.river-bank.demon.co.uk/docs/sip/sipref.html#a-simple-c-example
Is there a place to download the small file of this example to make sure
nothing of mine are wrong?
This is whar I did - I run:
sip -c . word.sip