ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ctypes-users
ctypes-users
[Fwd: Re: [ctypes-users] Re: Getting value out of a VARIANT array]
by Thomas Heller other posts by this author
Feb 13 2006 12:43PM messages near this date
Re: [ctypes-users] Re: Converting between ctypes data and Python data | Re: [ctypes-users] Re: Getting value out of a VARIANT array
I forgot to CC the list.

-------- Original Message --------
Message-ID: <43F0EE3E.9050007@[...].net> 
Date: Mon, 13 Feb 2006 21:38:22 +0100
From: Thomas Heller <theller@[...].net> 
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: Sumeet Sobti <sumeet_sobti@[...].com> 
Subject: Re: [ctypes-users] Re: Getting value out of a VARIANT array
References: <20060213180014.27207.qmail@[...].com> 
In-Reply-To: <20060213180014.27207.qmail@[...].com> 
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Sumeet Sobti wrote:
>  Hi Thomas,
>  
>  I tried using the code snippet you provided to handle
>  the array of variants, and it seems to work. Thanks!
>  
>  Is it possible for you to send me a code snippet to
>  handle the 2-d array case as well? This might be
>  sufficient for my immediate purposes, however I'll be
>  anxiously looking forward to the new release.

There is a comtypes.safearray module in the comtypes CVS repository,
maybe you can 'port' that back to ctypes.com - it should handle safearrays
of any dimension:

http://cvs.sourceforge.net/viewcvs.py/ctypes/ctypes/comtypes/Attic/safearray.py?rev=1.1.2.6&
only_with_tag=branch_1_0&view=markup

You just want to call the UnpackSafeArray function.

In case that doesn't work we should be able to hack up a 2-dim
safearray unpack function.

Thomas





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
ctypes-users mailing list
ctypes-users@[...].net
https://lists.sourceforge.net/lists/listinfo/ctypes-users

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved