Re: [python-win32] win32com calling C++ COM interface

2005-10-24 Thread Shad Muegge
With a lot of help from Mark Hammond we discovered the problems 1) the parameter type in the COM definition .py file was incorrect 2) the code shouldn't have been converting the parameter to a buffer object The type of "indexlist" in the COM definition .py file.  def Read(self, x=defaultNamedN

Re: [python-win32] win32com calling C++ COM interface

2005-10-19 Thread Mark Hammond
lf Of Shad MueggeSent: Thursday, 20 October 2005 6:23 AMTo: python-win32@python.orgSubject: [python-win32] win32com calling C++ COM interface Hi,   I've just started looking at Python.  I am trying to resolve an issue a user is having trying to access the COM interface in our appl

Re: [python-win32] win32com calling C++ COM interface

2005-10-19 Thread Shad Muegge
Sorry, the interface is expecting a safearray of 4-byte integers, instead it's getting a safearray of 1-byte integers. On 10/19/05, bob < [EMAIL PROTECTED]> wrote:At 01:22 PM 10/19/2005, Shad Muegge wrote:>Hi, >>I've just started looking at Python.  I am trying to resolve an issue a>user is having

Re: [python-win32] win32com calling C++ COM interface

2005-10-19 Thread bob
At 01:22 PM 10/19/2005, Shad Muegge wrote: >Hi, > >I've just started looking at Python. I am trying to resolve an issue a >user is having trying to access the COM interface in our application from >Python. > >C++ code: > >STDMETHODIMP >CMyClass::Read( > const int x, > VARIANT *indexlist,

[python-win32] win32com calling C++ COM interface

2005-10-19 Thread Shad Muegge
Hi,   I've just started looking at Python.  I am trying to resolve an issue a user is having trying to access the COM interface in our application from Python.   C++ code:   STDMETHODIMP    CMyClass::Read(  const int   x,   VARIANT  *indexlist,  // IN:  "safe" array of  4-byte integ