ctypes
Problem in printing array of char pointer passing from Python
My following C code works quite well, till my Python code trying to pass an array of char pointer to it.[详细]
2023-02-03 23:31 分类:问答How to insert item into c_char_p array
I want to pass an array of char pointer to a C function. I refer to http://docs.python.org/library/ctypes.html#arrays[详细]
2023-02-03 23:23 分类:问答Python process fail after ctypes CreateProcessWithLogonW execution
I\'m trying to execute a python script (through a python process) under another user. I found part of this code on the web and works pretty well; except one thing.[详细]
2023-02-03 23:11 分类:问答Does Ctypes Structures and POINTERS automatically free the memory when the Python object is deleted?
When using Python CTypes there are the Structures, that allow you to clone c-structures on the Python side, and the POINTERS objects that create a sofisticated Python Object from a memory address valu[详细]
2023-02-01 19:41 分类:问答Python ctypes module: NULL pointer access while extending pointer array
I was trying to use the ctypes module for a project. I was creating a dynamically allocated array of \"max_entries\" pairs and once the array was exhausted, I was creating a new array of size (1.5 * m[详细]
2023-01-30 03:15 分类:问答Python Ctypes Null Terminated String Block
I am using a ctypes implementation of CreateProcessWithLogonW, and everything works well except I cannot figure out how to handle this section:[详细]
2023-01-29 08:19 分类:问答ctypes, pyrex, swig, or cython for this problem?
I have about 20 simple C++ classes that represent various probability distributions.I would like to make these available in Python.What is the easiest way to do this?I don\'t mind having a program aut[详细]
2023-01-29 05:46 分类:问答Python & Ctypes: Passing a struct to a function as a pointer to get back data
I\'ve looked through other answers but can\'t seem to get this to work. I\'m trying to call a function within a DLL for communicating with SMBus devices. This function takes a pointer to a struct, whi[详细]
2023-01-28 15:54 分类:问答Getting data from ctypes array into numpy
I am using a Python (via ctypes) wrapped C library to run a series of computation.At different stages of the running, I want to get data into Python, and specifically numpy arrays.[详细]
2023-01-28 04:12 分类:问答How do I link and built a dynamic link library correctly?
I am in linux.My Makefile file is this main2: main.cpp g++ -c $(LIBS) $(CFLAGS) -fPIC main.cpp g++ -shared main.o -o main.so[详细]
2023-01-27 03:31 分类:问答