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)

Ironpython: Message: Expected C_double, Got C_double_array_3

I’m currently developing a script using the python script editor in Rhino. As I’m currently working… Read more Ironpython: Message: Expected C_double, Got C_double_array_3

How Do I Correctly Call A Function That Takes A "custom Enum" As Argument Using Ctypes And Ctypes Based Enums?

I really hope some Python/Ctypes/C expert can help me with this one, it is probably my lack of know… Read more How Do I Correctly Call A Function That Takes A "custom Enum" As Argument Using Ctypes And Ctypes Based Enums?

How Do I Look Up The Value Of A Multi-level Pointer Inside A Process In Python?

I have a process, and I want to look up a value of an address inside that process but that address … Read more How Do I Look Up The Value Of A Multi-level Pointer Inside A Process In Python?

Python Ctypes Weird Behavior

I am trying to design a bot for an application called Virtual Paradise and the SDK that is given fo… Read more Python Ctypes Weird Behavior

Python Readprocessmemory Not Reading Enough Bytes

Okay all you ctypes gurus out there... I've got a python script that reads a memory address a h… Read more Python Readprocessmemory Not Reading Enough Bytes

Access C_char_p_array_256 In Python Using Ctypes

I have a native python bridge to some C code, which returns a pointer to an array (array of structs… Read more Access C_char_p_array_256 In Python Using Ctypes

Python Ctypes How To Read A Byte From A Character Array Passed To Nasm

UPDATE: I solved this problem with the help of Mark Tolonen's answer below. Here is the solut… Read more Python Ctypes How To Read A Byte From A Character Array Passed To Nasm

Python Ctype Recursive Structures

I've developped a DLL for a driver in C. I wrote a test program in C++ and the DLL works fine. … Read more Python Ctype Recursive Structures

Access Byte By Byte In Python Ctypes Class(structure)

This is a followup question to my question , that was left unanswered EDIT and organized from my mo… Read more Access Byte By Byte In Python Ctypes Class(structure)

Python Pass Pointer To Delphi Function

I have dll, that builded in Delphi, and I try to call function from it. Declaration of function loo… Read more Python Pass Pointer To Delphi Function

Ctype - Python - Long Int Too Long To Convert -

problem: Traceback (most recent call last): File 'C:\Users\Nutzer\Google Drive\Code\Code\m… Read more Ctype - Python - Long Int Too Long To Convert -

Deallocating Memory For Objects Returned To Python Through Ctypes

I am using ctypes for extending my c functions in MyDll to python. from ctypes import cdll libX =… Read more Deallocating Memory For Objects Returned To Python Through Ctypes