Have you tried the MSDN help on this COM Module? M...actually after looking through the docs, maybe its not a whole lot of help. I see a lot of "Not Currently Supported" statements. Well, here's the link anyway in case there's something there:
http://msdn.microsoft.com/library/default.asp?url="
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
I think the problem is just the MSN documentation...The pythoncom
stuff is working as expected. To make things a little easier, I
recommend using the MakePy in pythonwin. It will create a .py file
that helps a small amount when trying to figure out what functions and
such you need to call. I rename
> 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
If
your application works as expected before converting to a service, there should
be no problem getting it working as a service. At the most basic level,
your service's main thread can do nothing more than interact with the service
control manager, and your application code should be able
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