[python-win32] pythoncom
John Sampson
jrs.idx at ntlworld.com
Wed Oct 15 15:50:04 CEST 2014
On 14/10/2014 18:15, Tim Roberts wrote:
> John Sampson wrote:
>> I have a proprietary program with a command interface implemented as an
>> ActiveX DLL. Importing win32com.client and pythoncom, I can call
>> functions from Python scripts. Some of these work properly in 32-bit
>> Windows 7, but others only in 64-bit Windows. Is this because pythoncom
>> is designed to work with Windows 64-bit only? Is there a version that
>> works with 32-bit Windows?
> Python is available is both 32-bit and 64-bit forms. You can use either
> one on a 64-bit operating system.
>
> However, a 64-bit process cannot call a 32-bit DLL, nor the reverse. If
> your proprietary program is a 32-bit application, then you need to
> install and use a 32-bit Python in order to use it.
>
> You can't install 64-bit product on a 32-bit Windows system, so if you
> are having trouble on a 32-bit Windows system, then there is something
> else going on.
>
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.
Regards
John Sampson
More information about the python-win32
mailing list