I have a c function as:
extern "C" __declspec(dllexport) MyStruct foo()
{
MyStruct s = {0, 0}
return s;
}
where the MyStruct is define as:
struct MyStruct{
uInt32 a;
uInt32 b;
void * c;
};
And i am trying to call the function in python, but always get error like:
WindowsError: exception: access violation writing 0x00000000
if i remove void * c from the struct, then it works...
so how should i return the void pointer? thanks!