[python-win32] python COM-Server and VBScript

Tim Roberts timr at probo.com
Tue Jun 27 18:50:38 CEST 2006


On Mon, 26 Jun 2006 13:40:47 +0200, Frank G?nther <f.g.- at gmx.de>

>...
>  
>
>>>> >
>>>> >I found a strange behaviour when I use a python-COM-Server together with VB.
>>>      
>>>
>>> 
>>> Not VB, but rather VBS.  They are two rather different languages.
>>>
>>    
>>
>...
>
>Hi Tim, 
>
>Thanks for your answer. 
>Actually the same problem arises if you use VB or VBA. So the difference
>between VB and VBS is at least for this problem not to wide.
>  
>

I'll be darned, you're quite right.  Even VB 2005 behaves this way.  I
checked the generated IL, and this weird behavior is definitely there. 
The compiled code is storing the return value in the first non-constant
parameter.

I've worked with COM for a long time, and I don't remember seeing that
behavior written down anywhere.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-win32 mailing list