**
Hello All,
 
I was wondering if anyone could show me some sample code of pyARS performing an ARCreateEntry(). I can not figure out how to configure the fieldList.
 
The input is supposed to be a tuple of (ID,value) pairs. The problem is when the call is made the helper function that is supposed to be providing the pointer reference is expecting a ctypes object, not a tuple. As a result it quickly fails.
 
I tried to make my own fieldList using the structure that already exists in the 'cars' file. But it's not allowing me to write to memory because I have not allocated space for the structure. I have not figured out how to emulate the C function malloc() which is used to allocate memory for the structure. Ctypes has a couple of memory utility functions (memset, and memmove), however I can't find the malloc equivalent.
 
I have been able to retrieve the output lists and other data using the tool, so it's working successfully. But the only example I could find shows data retrieval. I haven't been able to find anything that shows data submission. So it would be very helpful to see an example of how this call is set up and submitted.
 
Thanks ahead of time,
Marc
__20060125_______________________This posting was submitted with HTML in it___

Reply via email to