[python-win32] Data Type Conversion in Python Win32 COM

Chen chinux at gmail.com
Thu Feb 21 17:20:46 CET 2008


Hello,

I have a question regarding to how Data type is being converted into COM
object.

For example, there is a function A in one COM object that requires an
Unsigned 32 bit Integer as a parameter. How could I pass a Long Integer in
python to Function A.

I found that if the parameter is smaller or equal to ( 2^31 -1 ), the
parameter is correctly passed to Function A. Any value that bigger than ( 2
^31 - 1) will be interpreted as 0xFFFFFFFF. Does Python Win32 COM has its
own data conversion if the data type of the passed parameter is different
from the data type of the required parameter. If yes, how python win32 COM
does the conversion?

Thanks


Chen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20080221/ac494402/attachment.htm 


More information about the python-win32 mailing list