Top "Ctypes" questions

`ctypes` is a Python package that wraps C .dll/.so libraries in pure Python.

WindowsError: [Error 126] The specified module could not be found

I am loading a dll in python using following code: if os.path.exists(dll_path): my_dll = ctypes.cdll.…

python ctypes
ctypes - Beginner

I have the task of "wrapping" a c library into a python class. The docs are incredibly vague on this …

python python-3.x ctypes
Wrapping a C library in Python: C, Cython or ctypes?

I want to call a C library from a Python application. I don't want to wrap the whole API, only …

python c ctypes cython
Python import dll

How would I import a winDLL into python and be able to use all of its functions? It only needs …

python dll ctypes
What does (~0L) mean?

I'm doing some X11 ctypes coding, I don't know C but need some help understanding this. In the C code …

c++ c x11 ctypes
ctypes error: libdc1394 error: Failed to initialize libdc1394

I'm trying to compile my program to a shared library that I can use from within Python code using ctypes. …

python c++ shared-libraries ctypes libdc1394
Pointers and arrays in Python ctypes

I have a DLL containing a C function with a prototype like this: int c_read_block(uint32 addr, uint32 *…

python arrays pointers ctypes
How to use C++ classes with ctypes?

I'm just getting started with ctypes and would like to use a C++ class that I have exported in a …

c++ python ctypes
How do I convert a Python list into a C array by using ctypes?

If I have the follow 2 sets of code, how do I glue them together? void c_function(void *ptr) { int …

python c ctypes
Can I access ImageMagick API with Python?

I need to use ImageMagick as PIL does not have the amount of image functionality available that I am looking …

python imagemagick image-manipulation ctypes