Jens schrieb:
> Hello Thomas,
>
> (now to correct list address...)
That's great...
> Many thanks for the answer but unfortunately it does not help.
and this is not so great ;-).
> I'm not experienced with (D)COM. As I see if I want to use the CoClass (resp.
> QueryInterface) I
> have to do this
>
> from comtypes.gen import AutomaticTesting
> #help (AutomaticTesting.AutomaticTesting)
> self.__appl=CreateObject(AutomaticTesting.AutomaticTesting)
> print self.__appl.SendService("1101").Value()
>
>
> but I get the same error "parameter not optional" as well as when I use
> QueryInterface:
>
>
> from comtypes.gen import AutomaticTesting
> instance=comtypes.CoCreateInstance(self.CLSID)
> self.__appl
> =instance.QueryInterface(AutomaticTesting.IAutomaticTesting)
> print self.__appl.SendService("1101").Value()
>
>
> print self.__appl.SendService("1101").Value()
> File "C:\Programs\Python25\Lib\site-packages\comtypes\__init__.py", line
> 414, in func
> return self.Invoke(obj, memid, _invkind=1, *args, **kw) #
> DISPATCH_METHOD File
> "C:\Programs\Python25\Lib\site-packages\comtypes\automation.py",line 596, in
> Invoke
> byref(result), byref(excepinfo), byref(argerr))
> _ctypes.COMError: (-2147352561, 'Parameter nicht optional.', (None,
> None,None, 0, None))
>
The easiest way for me to further examine this problem would be if I install
this com object on my own machine. Is this possible?
Thanks,
Thomas
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
comtypes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/comtypes-users