Re: [python-win32] MemoryError: CreatingSafeArray when trying to use VBCOM API

2007-01-09 Thread Mark Hammond
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Rex Corrovan > Sent: Wednesday, 10 January 2007 7:54 AM > To: python-win32@python.org > Subject: [python-win32] MemoryError: CreatingSafeArray when trying to > use VBCOM API > > > I have a VB COM App I am

[python-win32] MemoryError: CreatingSafeArray when trying to use VB COM API

2007-01-09 Thread Rex Corrovan
I have a VB COM App I am trying to use. I used makepy and it generated the wrapper. Then I go to use: import win32com.client o = win32.client.Dispatch("vbAPI.App") o.myFunct(arg1=("test","test"), arg2=1, arg3=("test2","test2")) The function in the makepy generated wrapper looks like this: def

Re: [python-win32] win32com: Problem with passing short integer?

2007-01-09 Thread Thomas Heller
Einar Sørheim schrieb: > Hi, > I have a set of com dlls that I have a hard time to get working together > with python. [...] > I have sample programs doing the same in c++ and VB and it works there. > Have tried comtypes but then stumbles on another problem > earlier in the program. If it reall

Re: [python-win32] win32com: Problem with passing short integer?

2007-01-09 Thread Mark Hammond
> The interface code is generated automatically in the 'gen_py' > folder, > the interface contains only > vtable-entries, I am not sure what this means It almost certainly means that interface does not work with IDispatch - it is vtable only. pywin32 can't call such interfaces yet - I belive comt

[python-win32] win32com: Problem with passing short integer?

2007-01-09 Thread Einar Sørheim
Hi, I have a set of com dlls that I have a hard time to get working together with python. In this particular case everything seems to work nicely until I make a function call with a short int as input argument. The following error message is given: Traceback (most recent call last): File "mtupv