Re: [python-win32] Variant ByRef 2D array returned as 1D array

2006-08-16 Thread Kevin Patterson
win32com is definitely treating it as a string (or byte buffer), but I would have expected to get a byte buffer with the data for ALL the elements. For example the array being returned should be 30x8 array, but i get a string with a length of 30 instead of a string of length 30*8. Does the pythonco

Re: [python-win32] Variant ByRef 2D array returned as 1D array

2006-08-16 Thread Mark Hammond
> I'm working with a COM module that is returning a 2D array as a > VARIANT BYREF. The 2D array is 30x8 (with each entry being 1 byte) > When the data is returned I'm getting a buffer of length 30. This > tells me that win32com only sees 1D of the array (documentation states > that the buffer is ex

[python-win32] Variant ByRef 2D array returned as 1D array

2006-08-16 Thread Kevin Patterson
I'm working with a COM module that is returning a 2D array as a VARIANT BYREF. The 2D array is 30x8 (with each entry being 1 byte) When the data is returned I'm getting a buffer of length 30. This tells me that win32com only sees 1D of the array (documentation states that the buffer is expected for