[python-win32] pythoncom

Tim Roberts timr at probo.com
Tue Oct 14 19:15:09 CEST 2014


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.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list