On Aug 16, 5:20Â pm, castironpi <[EMAIL PROTECTED]> wrote: > On Aug 16, 4:42Â pm, "Michel Claveau - NoSpam SVP ; merci" > > <[EMAIL PROTECTED]> wrote: > > Hi! > > > I use mmap for interchange data between Python & Autoit. Â For that, I > > use (Autoit's side) a little DLL. > > This DLL can, perhaps, be used with ctypes. > > > @-salutations > > -- > > Michel Claveau > > Say more-- what DLL? [EMAIL PROTECTED]
This worked to 'cast' the mmap memory block to an integer: a= ctypesbuf.get( m, 0, ctypes.POINTER( ctypes.c_uint32 ) ) where ctypesbuf is a C extension module, and 'get' contains: ... char* seg= map->data+ index; PyObject* char_buf= PyObject_CallFunction( ctypesmod_cast, "IO", seg, tp ); return char_buf; However I find no equivalent to 'map->data' in Python. -- http://mail.python.org/mailman/listinfo/python-list