[python-win32] How to pass "out" parameter to win32com

2014-06-27 Thread wjh
Dears, I have a problem with passing out type parameter to win32com function. In C# envirement one of the COM’s function prototype is: int ActEasyIF.ReadDeviceBlock(string szDevice, int Isize, out int IpIdata); when calling the function ,it passes a first element of a int array to

[python-win32] How to pass "out" parameter to win32com

2014-06-27 Thread wjh
Dears, I have a problem with passing out type parameter to win32com function. In C# envirement one of the COM's function prototype is: int ActEasyIF.ReadDeviceBlock(string szDevice, int Isize, out int IpIdata); when calling the function ,it passes a first element of a int array to t

Re: [python-win32] How to pass "out" parameter to win32com

2014-06-27 Thread Tim Roberts
wjh wrote: > > Dears, > > I have a problem with passing out type parameter to win32com function. > In C# envirement one of the COM’s function prototype is: > > int ActEasyIF.ReadDeviceBlock(string szDevice, int Isize, > out int IpIdata); > > when calling the function ,it passes a first

Re: [python-win32] Not able to paste file in windows explorer using SetClipboardData

2014-06-27 Thread game4 sale
Hi Mark, Thank you for your suggestion. I made it to work by following the sequence below: 1) EmptyClipboard() 2) SetClipboardData(CF_UNICODETEXT) 3) SetClipboardData(CF_HDROP, ret_stg.data) Now am able to paste the images in all supported applications in Windows 7/8. I am happy with this for now

[python-win32] get bitmapbits string from PyBITMAP pointer value

2014-06-27 Thread game4 sale
Hi guys, I am trying to get BitmapBits from PyBITMAP object. As per the pywin32 doc, i guess i managed to unpack the PyBITMAP structure to get the pointer to bitmap bits. But when i use that pointer in PyGetMemory() i get "ValueError: The value is not a valid address for reading" Any clues please