[comtypes-users] Unsupported Variant - NotImplementedError: typecode 20 = 0x14

2008-12-12 Thread Sandy Walsh

I have a c++ method that returns a LONGLONG data type.

How can I get this value from comtypes and avoid this 
NotImplementedError exception?


Thanks in advance!
-Sandy

begin:vcard
fn:Alexander Sandy Walsh
n:Walsh;Alexander Sandy
org:Impath Networks
adr:Suite 100;;42 Payzant Ave;Halifax;NS;B3B 1Z6;Canada
email;internet:swa...@impathnetworks.com
title:Software Developer
tel;work:902-468-1010 x 246
x-mozilla-html:FALSE
url:http://www.impathnetworks.com http://www.pstdvr.com
version:2.1
end:vcard

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users


Re: [comtypes-users] Unsupported Variant - NotImplementedError: typecode 20 = 0x14

2008-12-12 Thread Sandy Walsh

Little update on this

I added to automation.py ...

_get_value(self):
...
   elif vt == VT_I8:
   return self._.VT_I8

tagVARIANT
 _fields_ = [
...
   (VT_I8, c_longlong),

And it works fine.

Perhaps this should get patched?

-S


Sandy Walsh wrote:

I have a c++ method that returns a LONGLONG data type.

How can I get this value from comtypes and avoid this 
NotImplementedError exception?


Thanks in advance!
-Sandy

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/


___
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users
  


begin:vcard
fn:Alexander Sandy Walsh
n:Walsh;Alexander Sandy
org:Impath Networks
adr:Suite 100;;42 Payzant Ave;Halifax;NS;B3B 1Z6;Canada
email;internet:swa...@impathnetworks.com
title:Software Developer
tel;work:902-468-1010 x 246
x-mozilla-html:FALSE
url:http://www.impathnetworks.com http://www.pstdvr.com
version:2.1
end:vcard

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users


Re: [comtypes-users] Unsupported Variant - NotImplementedError: typecode 20 = 0x14

2008-12-12 Thread Thomas Heller
Sandy Walsh schrieb:
 Little update on this
 
 I added to automation.py ...
 
 _get_value(self):
 ...
 elif vt == VT_I8:
 return self._.VT_I8
 
 tagVARIANT
   _fields_ = [
 ...
 (VT_I8, c_longlong),
 
 And it works fine.

Thanks for the heads up.  I have extended your patch so that also VT_UI8 is 
fully
supported in VARIANT, and extended the VARIANT._set_value().

Just in time for the 0.5.3 release...

Thanks,
Thomas


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users