Skip to content Skip to sidebar Skip to footer
Showing posts with the label Ctypes

Ctypes.argumenterror When Using Kivy With Pywinauto

I have a kivy application that can interact with other windows using the pywinauto module. The appl… Read more Ctypes.argumenterror When Using Kivy With Pywinauto

Different Behaviour Of Ctypes C_char_p?

I am confused with this behaviour of different versions of python and dont understand why ? Python… Read more Different Behaviour Of Ctypes C_char_p?

How To Get Python's Multiprocessing Array'pointer And Pass It To Cpp Program?

I now need to request arrays in python, and pass them into a Cpp program, yet python still needs to… Read more How To Get Python's Multiprocessing Array'pointer And Pass It To Cpp Program?

Access Violation Using Python Ctypes

I am trying to import and use a function from a DLL using Pythons ctypes module, but I keep getting… Read more Access Violation Using Python Ctypes

What Is The Correct Pointer Type To Return From A Ctypes Callback?

I have a ctypes callback that takes a pointer to two doubles from the dll and returns a pointer to … Read more What Is The Correct Pointer Type To Return From A Ctypes Callback?

Numpy Structured / Regular Array From Ctypes Pointer To Array Of Structs

Say I have the following C function: void getArrOfStructs(SomeStruct** ptr, int* numElements) And … Read more Numpy Structured / Regular Array From Ctypes Pointer To Array Of Structs

How Do I Convert A Pointer Returned By A C Function Invoked Using Ctypes Into A Numpy Array?

I have a function in C which returns an array of data and its length. Everything compiles and works… Read more How Do I Convert A Pointer Returned By A C Function Invoked Using Ctypes Into A Numpy Array?

What's The Difference Between Lp_* Pointers And *_p Pointers In Ctypes? (and Weird Interaction With Structs)

I'm having trouble understanding the difference between LP_* (e.g. LP_c_char) and *_p (e.g. c_c… Read more What's The Difference Between Lp_* Pointers And *_p Pointers In Ctypes? (and Weird Interaction With Structs)