On 16/10/2014 07:48, Mark Hammond wrote:
On 16/10/2014 12:50 AM, John Sampson wrote:
The interface has a function which returns a string from an array of
strings as it is supposed to
in Windows 64-bit, or if called from VBA.
In 32-bit Windows Python it returns the number of the item in the array
instead.

So to be clear - you have a 64bit version of Windows, and you've installed python and pywin32 in both 32 and 64bit variants, *and* you've installed the COM object in both 64 and 32bit variants - is that correct?

If so, I suspect the problem might be that you've run makepy (or previously called EnsureDispatch etc) in the 64bit version but not in the 32bit version - check the lib\site-packages\win32com\gen_py directory and you might find the generated support in the 64bit version and not the other.

HTH,

Mark


I have the 32-bit version of Python on both computers (64-bit Windows and 32-bit Windows), installed from the MSI file, so I have not personally run makepy on either. The COM object is part of the same software package, installed on both computers. They are different versions, but I thought I had excluded that this was where the problem lay. I will have to review this. Looking at lib\site-packages\win32com\gen_py I see more files in the version causing trouble than in the version that works OK.
How would I recognise the generated support you mention?

Regards

John Sampson
_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to