Newbie: SWIG or SIP?

Phil Thompson phil at riverbankcomputing.co.uk
Thu Feb 10 04:25:00 EST 2005


> I have a third-party DLL and it's associated .h file.  The DLL was written
> in C.  I have neither the associated .c files nor the .obj files for the
> DLL.  Can I use SWIG or SIP to build something that will allow me to use
> the
> DLL with Python?  And what is that something, an .obj file, another DLL or
> what?

Yes, you can use either SWIG or SIP. C (as opposed to C++) support was
added with SIP v4. The something is another DLL, conventionally given a
.pyd extenstion.

Phil




More information about the Python-list mailing list