Related
orca I want to use ctypes to use some information in C++ which is contained in a serialized buffer in a list of Python characters. I have tried the following but I don't understand why my parameter type is throwing an error. I have a C wrapper for some C++ cod
orca I want to use ctypes to use some information in C++ which is contained in a serialized buffer in a list of Python characters. I have tried the following but I don't understand why my parameter type is throwing an error. I have a C wrapper for some C++ cod
Hook I am accessing the API and I am not able to get the returned data. Two floating point pointers will point to an array of data. I have to assume the API is functioning properly. Different function calls provide the length of the data I want to retrieve. le
Hook I am accessing the API and I am not able to get the returned data. Two floating point pointers will point to an array of data. I have to assume the API is functioning properly. Different function calls provide the length of the data I want to retrieve. le
Hook I am accessing the API and I am not able to get the returned data. Two floating point pointers will point to an array of data. I have to assume the API is functioning properly. Different function calls provide the length of the data I want to retrieve. le
Flower boxes I want to use C library on Python. Then, I want to get the message (char*) from the C library function. I wrote these codes. I get the result value (double *result_out), but no message. This code appears as "c_char_p(None)". Any ideas? I use Pytho
Flower boxes I want to use C library on Python. Then, I want to get the message (char*) from the C library function. I wrote these codes. I get the result value (double *result_out), but no message. This code appears as "c_char_p(None)". Any ideas? I use Pytho
unlimited This item table prints different permutations of strings. If I declare the string as a char array in main and pass the array name in the printAnagram function it works fine. But if I declare string as char *s="hello" and pass 's' it crashes. Why? #in
unlimited This item table prints different permutations of strings. If I declare the string as a char array in main and pass the array name in the printAnagram function it works fine. But if I declare string as char *s="hello" and pass 's' it crashes. Why? #in
but Some background; I have to connect an EEprom that has an I2C interface. I want to save an array of floats in memory and then read it back. I want to make it asap. Currently, I have the following solution for this, which works great. float a[5];
unsigned ch
lightning I'm a novice programmer using ctypes with Python and trying to use functions from a DLL written in C. I've found a lot of similar questions on SO to solve, but none of the answers to this kind of conundrum. I have the DLL loaded just fine, but one of
lightning I'm a novice programmer using ctypes with Python and trying to use functions from a DLL written in C. I've found a lot of similar questions on SO to solve, but none of the answers to this kind of conundrum. I have the DLL loaded just fine, but one of
lightning I'm a novice programmer using ctypes with Python and trying to use functions from a DLL written in C. I've found a lot of similar questions on SO to solve, but none of the answers to this kind of conundrum. I have the DLL loaded just fine, but one of
your destiny question I'm trying to use a function from a c library with the following prototype: int glip_get_backends(const char ***name, size_t *count); The parameter here nameis the problem. It is a 2-dimensional char array passed by reference. In C, the u
boss I'm trying to get information from a sensor via its DLL using Python. I've never used ctypes or C before, so I'm lacking some knowledge about this, hope someone can help me. Calling the function works so far, but I can't get the function to return the str
your destiny question I'm trying to use a function from a c library with the following prototype: int glip_get_backends(const char ***name, size_t *count); The parameter here nameis the problem. It is a 2-dimensional char array passed by reference. In C, the u
Wanze I'm working on this project where there are c# projects that use a dll like this: public string GetMachineKey()
{
StringBuilder buff = new StringBuilder();
buff.Length = 128;
ZwCommDll.GetCPUMachineKey(buff, 128);
Macaque In the function declaration below, the first parameter is a String, specifically an array of chars, and the third parameter is a pointer to an integer. Is the second parameter a pointer to an array of characters? In other words, a pointer to a pointer?
Macaque In the function declaration below, the first parameter is a String, specifically an array of chars, and the third parameter is a pointer to an integer. Is the second parameter a pointer to an array of characters? In other words, a pointer to a pointer?
Macaque In the function declaration below, the first parameter is a String, specifically an array of chars, and the third parameter is a pointer to an integer. Is the second parameter a pointer to an array of characters? In other words, a pointer to a pointer?
Macaque In the function declaration below, the first parameter is a String, specifically an array of chars, and the third parameter is a pointer to an integer. Is the second parameter a pointer to an array of characters? In other words, a pointer to a pointer?
Grossinger I have a shared library whose functions need to int **look like this: void printarray(int **array, int n, int m)
{
int i, j;
for (i = 0; i < m; i++)
for (j = 0; j < n; j++)
printf("%d\n", array
Grossinger I have a shared library whose functions need to int **look like this: void printarray(int **array, int n, int m)
{
int i, j;
for (i = 0; i < m; i++)
for (j = 0; j < n; j++)
printf("%d\n", array
Grossinger I have a shared library whose functions need to int **look like this: void printarray(int **array, int n, int m)
{
int i, j;
for (i = 0; i < m; i++)
for (j = 0; j < n; j++)
printf("%d\n", array
Grossinger I have a shared library whose functions need to int **look like this: void printarray(int **array, int n, int m)
{
int i, j;
for (i = 0; i < m; i++)
for (j = 0; j < n; j++)
printf("%d\n", array
Grossinger I have a shared library whose functions need to int **look like this: void printarray(int **array, int n, int m)
{
int i, j;
for (i = 0; i < m; i++)
for (j = 0; j < n; j++)
printf("%d\n", array
Grossinger I have a shared library whose functions need to int **look like this: void printarray(int **array, int n, int m)
{
int i, j;
for (i = 0; i < m; i++)
for (j = 0; j < n; j++)
printf("%d\n", array
Anthony I am trying to call the following C++ method from my python code: TESS_API TessResultRenderer* TESS_CALL TessTextRendererCreate(const char* outputbase)
{
return new TessTextRenderer(outputbase);
}
I'm having trouble with how to pass pointers to me
Anthony I am trying to call the following C++ method from my python code: TESS_API TessResultRenderer* TESS_CALL TessTextRendererCreate(const char* outputbase)
{
return new TessTextRenderer(outputbase);
}
I'm having trouble with how to pass pointers to me