ctypes.byref() does not work for struct members.
Try it out.
class s(ctypes.Structure):
_fields_ = [('x',ctypes.c_int)]a = s() ctypes.byref(a.x) //this won't work. On Fri, May 1, 2009 at 2:28 PM, CTO <[email protected]> wrote: > ctypes.byref() > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list
