[python-win32] Implementing an instance of an external/physical .dll file?

Tim Roberts timr at probo.com
Mon Jan 19 20:17:18 CET 2015


Jacob Kruger wrote:
> I have a .dll pulled from following hub:
> https://github.com/qtnc/UniversalSpeech
>  
> What's the easiest/simplest way to then implement/instantiate an
> instance of it working via file path?
>  
> If possible, and, currently working with python 3.4, on a windows7 64
> bit machine, FWIW.

You can use the ctypes module to access virtually any arbitrary DLL. 
That's what they mean when they talk about an FFI library.  There's a
learning curve, but essentially anything is possible.

Let me caution you, however, that the DLL in that release is a 32-bit
DLL.  If you are using 32-bit Python, you're OK.  If you're using 64-bit
Python, you can't use the binary.  You'd have to build it from source.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list