Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   any python wrapper to call .lib static library(ufmod.lib)? (http://www.velocityreviews.com/forums/t592083-any-python-wrapper-to-call-lib-static-library-ufmod-lib.html)

est 02-16-2008 10:00 AM

any python wrapper to call .lib static library(ufmod.lib)?
 
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?

Cheers

Diez B. Roggisch 02-16-2008 10:56 AM

Re: any python wrapper to call .lib static library(ufmod.lib)?
 
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


All times are GMT. The time now is 09:52 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.