Re: [python-win32] Problem passing a VARIANT argument to a method of aCOM object

2006-02-06 Thread Sumeet Sobti
Hi, - - - - - - - - def AddTest(self, lpProperty=defaultNamedNotOptArg, vValue=defaultNamedNotOptArg): method AddTest return self._oleobj_.InvokeTypes(4, LCID, 1, (24, 0), ((30, 1), (12, 1)),lpProperty, vValue) Can you please try changing the 30 there

Re: [python-win32] Problem passing a VARIANT argument to a method of aCOM object

2006-02-06 Thread Mark Hammond
I tried changing the 30 to 8 in the above line. This does *not* work either, although it gives a different error this time: obj.AddTest('IsBuy', True) Traceback (most recent call last): File stdin, line 1, in ? File c:\Python24\lib\site-packages\win32com\gen_py\98B8AE14-466F-11D6-

Re: [python-win32] Problem passing a VARIANT argument to a method of aCOM object

2006-02-06 Thread Sumeet Sobti
I tried the late-bound mode (by deleting all the generated files in the gen_py directory). It still gives me the same TypeError. obj.AddTest('IsBuy', True) Traceback (most recent call last): File stdin, line 1, in ? File COMObject XTAPI.TTOrderSelector, line 2, in AddTest TypeError: The

Re: [python-win32] Problem passing a VARIANT argument to a method of aCOM object

2006-02-06 Thread Mark Hammond
Does the error above show with some certainty that it's a problem with the COM object? Sadly it doesn't demonstrate much with any certainty! Humm... Is there a way to debug the python side more carefully? E.g., using a lower-level interface in the pythoncom module or something?

Re: [python-win32] Problem passing a VARIANT argument to a method of aCOM object

2006-02-04 Thread Mark Hammond
I am struggling with a problem related to passing a VARIANT argument to a COM object. I am getting this exception: TypeError: The VARIANT type is unknown (001e) Hmmm - I guess that is a bug in pywin32 - that variant type *is* valid in a TYPEDESC, so pywin32 probably should convert that