Lists of lists over COM, how?

martin nobody at nonet.net
Tue Dec 14 03:53:14 EST 1999


Hi,

I'd like to return a set of database records to Python in a single variable
from a COM object in C++ and had hoped I could use a two-dimensional VARIANT
array for this. Looking through the SafeArray* functions in the WIN API they
only allow arrays of a single basic type. I had hoped that a list of lists
with mixed data types would correspond to some variant array (since there
are both numbers and strings in these records). Anyone knows?

--Martin



More information about the Python-list mailing list