Re: Newbie: SWIG or SIP?

2005-02-10 Thread Phil Thompson
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

Re: Newbie: SWIG or SIP?

2005-02-10 Thread suryaprakashg
Look at this , this might be more simple to use http://starship.python.net/crew/theller/ctypes/ Phil Thompson wrote: 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

Re: Newbie: SWIG or SIP?

2005-02-10 Thread Grant Edwards
On 2005-02-10, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Phil Thompson wrote: 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

Newbie: SWIG or SIP?

2005-02-09 Thread Brent W. Hughes
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

Re: Newbie: SWIG or SIP?

2005-02-09 Thread Larry Bates
You can call the .DLL file by using a solution I wrote (and donated) some time ago. It is located here: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/146847 You will need calldll.pyd available here: http://www.nightmare.com/software.html I've used this solution a LOT and it has worked

Re: Newbie: SWIG or SIP?

2005-02-09 Thread Caleb Hattingh
Brent Google python ctypes. ctypes is cool :) keep well Caleb On Wed, 9 Feb 2005 13:44:44 -0700, Brent W. Hughes [EMAIL PROTECTED] wrote: 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.

Re: Newbie: SWIG or SIP?

2005-02-09 Thread Peter Hansen
Larry Bates wrote: You can call the .DLL file by using a solution I wrote (and donated) some time ago. It is located here: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/146847 You will need calldll.pyd available here: http://www.nightmare.com/software.html While calldll works for this