win32com.client.dynamic: VARIANT type not supported for SAFEA RRAYS
Stefan Migowsky
smigowsky at dspace.de
Fri Mar 3 07:30:06 EST 2000
Hi,
if you have type information (e.g. a .tlb) just generate a wrapper
with makepy and send the line where the CanModify property is defined, i.e.
...
_prop_map_get_ = {
...
"CanModify": (XX, XX, (YY, XX), (), "CanModify", XX),
...
On the YY place is the definition of the type. If there is a 12 which means
VARIANT we are out of luck.
Just for your information here is the list of supported variant
types for safearrays:
VT_VARIANT
VT_UI1
VT_I2
VT_I4
VT_R4
VT_R8
VT_BSTR
VT_DISPATCH
VT_UNKNOWN
VT_DATE
Stefan
>-----Original Message-----
>From: Olaf Trygve Berglihn [mailto:olafb at pvv.org]
>Sent: Thursday, March 02, 2000 10:43 AM
>To: python-list at python.org
>Subject: Re: win32com.client.dynamic: VARIANT type not supported for
>SAFEARRAYS
>
>
>* "Mark Hammond" <mhammond at skippinet.com.au
>> The Python COM framework doesnt have support for that variant type in
>> safe array :-( I have no idea what the variant type is, but it must
>> be one of the more obscure ones. What is the property defined as
>> returning? Presumably it is an array, but of what?
>>
>> Mark.
>
>According to the help files for the COM-aware application, the
>datatypes used are:
>
>Visual Basic Type C++ Type
>--------------------------------
>Variant VARIANT
>String BSTR
>Boolean VARIANT_BOOL
>Long long
>Integer short
>Double double
>Single float
>arrays SAFEARRAY
>
>Does that answer any questions?
>
>Olaf
>--
>* Olaf Trygve Berglihn <olafb at pvv.org>
>--
>http://www.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list