Re: [python-win32] help passing a buffer to an ActiveX object via win32com

2009-08-09 Thread Orest Kozyar
The C prototype is /long ReadTag(LPCTSTR name, float* pBuf, long nOS, long nWords);/ That's not really the COM-approved way to declare that. Note the signature: Using MakePy, the signature is /def ReadTag(self, Name=defaultNamedNotOptArg, pBuf=defaultNamedNotOptArg,

[python-win32] help passing a buffer to an ActiveX object via win32com

2009-08-07 Thread Orest Kozyar
I'm trying to use an ActiveX object to read data from hardware. Certain methods do not appear to work, specifically ones that expect a pointer to an array of 32-bit floats as one of the variables. One method is *ReadTag*. The C prototype is *long ReadTag(LPCTSTR name, float* pBuf, long nOS,