>Fine.  Maybe, you can explain why there are parameters marked [in, out]
>in propput methods?

The com is writing with vb6. Here is the declaration for the HeadCount and 
CommPort:

================================================
Property Let HeadCount(Count As Integer)

    If Count >= 1 And Count <= 32 Then myHeadCount = Count

End Property

Property Get HeadCount() As Integer

    HeadCount = myHeadCount

End Property

Property Let CommPort(Head As Integer, Port As Integer)
    
    RaiseEvent LogEvent(600, "SITHERMAL32: Let Head " + CStr(Head) + " 
CommPort=" + CStr(Port))
    If Port >= 1 And Port <= 32 And Head >= 1 And Head <= myHeadCount Then 
myHeadPort(Head) = Port

End Property

Property Get CommPort(Head As Integer) As Integer
    
    If Head >= 1 And Head <= myHeadCount Then CommPort = myHeadPort(Head)

End Property
=================================================

>
>> Here is the generated python script by comtypes:
>> ===================================================================
>> COMMETHOD([dispid(1745027074), 'propput'], HRESULT, 'HeadCount',
>>               ( ['in', 'out'], POINTER(c_short), 'None' )),
>> COMMETHOD([dispid(1745027074), 'propget'], HRESULT, 'HeadCount',
>>               ( ['retval', 'out'], POINTER(c_short), 'None' )),
>> COMMETHOD([dispid(1745027073), 'propput'], HRESULT, 'CommPort',
>>               ( ['in', 'out'], POINTER(c_short), 'Head' ),
>>               ( ['in', 'out'], POINTER(c_short), 'None' )),
>>
>
>Thomas

Thanks in advance.

Regards, 
Shin Guey 



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to