any python wrapper to call .lib static library(ufmod.lib)?

Diez B. Roggisch deets at nospam.web.de
Sat Feb 16 05:56:52 EST 2008


est schrieb:
> I want to play .XM music using Python, now I found ufmod http://ufmod.sourceforge.net
> 
> It only provide a ufmod.lib to be compiled in C/C++/BASIC, and Python
> as a scripting language could not handle these static libraries. What
> could I do to with these .lib files?

I'm not sure if ctypes can use static libraries, but at least you should 
be able to create a dynamic library from it that you then can use using 
ctypes. Or you use Pyrex to wrap the static lib.

Diez



More information about the Python-list mailing list