Arrays and CTYPE
glenn.pringle at gmail.com
Tue Sep 21 00:47:32 CEST 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
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()
>>> print hold.getBufferLength()
>>> print hold.resetMonitor()
>>> print hold.getState()
Would greatly appreciate if somebody points me in the right direction.
More information about the Python-list