Arrays and CTYPE

Glenn Pringle glenn.pringle at gmail.com
Mon Sep 20 18:47:32 EDT 2010


Ok. I ran into a problem here. I have been dabbling with Python and I
thought that this would be a good exercise but I got stuck.

I have a DLL and one of the functions(getState) in that DLL returns an
array. I'm having a hard time getting access to the contents of that
array.

Python 2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit
(Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import ctypes
>>> hold = ctypes.CDLL('Dinamap.dll')
>>> print hold.checkReadiness()
1
>>> print hold.getBufferLength()
1400
>>> print hold.resetMonitor()
1
>>> print hold.getState()
42607516
>>>

Would greatly appreciate if somebody points me in the right direction.


Thanks,


Glenn



More information about the Python-list mailing list