A Wednesday 08 September 2010 12:15:45 Kim Hansen escrigué: > I cannot install pytables though from that source as it requires that I > have Python 2.6 installed. Is the GnuWin32\bin\lzo1.dll found in > > http://www.pytables.org/download/lzo-win/ > > identical and can I use ctypes on that?
Yes, as far as I can say, they are identical. > I've verified that I can load that one using either > > dll=ctypes.windll[r'C:\Path\To\lzo1.dll'] > > or > > dll=ctypes.oledll[r'C:\Path\To\lzo1.dll'] > > But I have no idea (yet) how to figure out the signature of the functions > in that DLL and how to access them? Nor do I understand if I should use a > windll or oledll ctypes object. Uh, I've never had to use ctypes, so I cannot be of much help here. > > If I try tab completion on the > > dll. > > instance in an IPython shell, I do not see any named functions which seems > to be specific for the dll at all and relating to lzo: > > dll._FuncPtr dll.__getitem__ dll.__repr__ > dll.__class__ dll.__hash__ dll.__setattr__ > dll.__delattr__ dll.__init__ dll.__str__ > dll.__dict__ dll.__module__ dll.__weakref__ > dll.__doc__ dll.__new__ dll._handle > dll.__getattr__ dll.__reduce__ dll._name > dll.__getattribute__ dll.__reduce_ex__ > > This may be due to a fundamental failure in my understanding of how to use > the ctypes module. (I am reading through the ctypes documentation, but I > find it very hard to understand, having no detailed knowledge about Windows > dlls nor C. Perhaps you can ask in the ctypes list? -- Francesc Alted ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users