Hi,

I'm starting to use Python/C++ and SIP.

1- first, is there any places to find examples and doc about SIP
(I know website http://www.controlvideo.de/sip/out/index.html and the
little example at http://www.opendocs.org/pyqt/)



2- Second, I create a DLL in C++ exporting a dummy class.
After using SIP and building the result, I run a python script,
with the following error.  What's wrong?

        File "C:\Python22\Lib\site-packages\DLL2Test.py", line 10, in ?
            a = CTest()
        File "DLL2.py", line 12, in __init__
            libDLL2c.sipCallCtor(0,self,args)
        SystemError: error return without exception set

Here is the script:
        
        from DLL2 import *

        class CTest(CBaseTest):    
            def Out(self):
                print "coucou"

        a = CTest()
        a.Out()

where CBaseTest class came from the DLL in C++

Regards
eric

_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde

Reply via email to