[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

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

est

2/16/2008 10:00:00 AM

I want to play .XM music using Python, now I found ufmod http://ufmod.sourc...

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?

Cheers
1 Answer

Diez B. Roggisch

2/16/2008 10:57:00 AM

0

est schrieb:
> I want to play .XM music using Python, now I found ufmod http://ufmod.sourc...
>
> 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