Re: [python-win32] Need help with COM MSN Messenger Interface

2006-08-16 Thread Kevin Patterson
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="

[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

Re: [python-win32] Need help with COM MSN Messenger Interface

2006-08-16 Thread Kevin Patterson
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

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

Re: [python-win32] Multithreaded Service

2006-08-16 Thread Mark Hammond
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

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