Re: [python-win32] COM server and function parameters (debug with pippo)

2008-10-16 Thread ricercar
I have the same problem with pippo_server, the test file in the win32com package. I don't know if somebody can have more info from this. I used a client written with python and comtypes and, with a little effort I can see the call to QueryInterface with IID_NULL (as happens if the caller is a C++

Re: [python-win32] COM server and function parameters

2008-10-16 Thread ricercar
At 10.31 15/10/2008 -0700, you wrote: [EMAIL PROTECTED] wrote: > Hi all, > I still have some problems with my server. > > I have a function that should return three parameters defined as: > > HRESULT GetInfo([out] BSTR *name, [out] BSTR *version, [out] BSTR > *description); > > If I return a tuple

Re: [python-win32] COM server and function parameters

2008-10-15 Thread Tim Roberts
[EMAIL PROTECTED] wrote: > Hi all, > I still have some problems with my server. > > I have a function that should return three parameters defined as: > > HRESULT GetInfo([out] BSTR *name, [out] BSTR *version, [out] BSTR > *description); > > If I return a tuple with three string I get an error sayi

Re: [python-win32] COM server and function parameters

2008-10-15 Thread ricercar
Hi all, I still have some problems with my server. I have a function that should return three parameters defined as: HRESULT GetInfo([out] BSTR *name, [out] BSTR *version, [out] BSTR *description); If I return a tuple with three string I get an error saying that the number of returned parameter

Re: [python-win32] COM server and function parameters

2008-10-01 Thread ricercar
At 09.19 02/10/2008 +1000, you wrote: >Just return a string - pythoncom will do the SysAllocString() for you. >Please see the 'pippo' examples in the win32com directory - they show how to >hookup a typelib with your com object implementation. It's incredible how simple is the answer, I searched a

Re: [python-win32] COM server and function parameters

2008-10-01 Thread Mark Hammond
> Hi all, > this is my first time here. I looked into the archive but found no > answer to > a question that probably is simple (I hope). > I need to implement a COM server and I got the interface in IDL format. > Unfortunately to me some functions have a declaration like this: > > HRESULT func([i