[python-win32] Why is my object 32-bit??
Borut Flis
borutflis1 at gmail.com
Fri Mar 19 17:28:44 EDT 2021
Hello,
I registered an object with pywin32. For demonstrative purposes I used a
simple HelloWorld available here:
https://github.com/BorutFlis/Scripts/blob/main/hello.py
I can call with pywin32:
import win32com.client
o = win32com.client.Dispatch("Python.TestServer")
It works fine. I than tried to run it with visual basic in Excel and it was
not working.
My Excel is 64-bit and so is my Python.
After some advice I tried running the Visual Basic script
with C:\Windows\System32\cscript.exe and C:\Windows\SysWOW64\cscript.exe .
It works with the SysWOW64, which is where the 32-bit object are.
So my COM object is 32-bit, why is that and how can I reconfigure.
Also I don't know where to locate the .dll or .exe created.
There is not entry at:
HKEY_CLASSSES_ROOT\Wow6432Node\CLSID\{7CC9F362-486D-11D1-BB48-0000E838A65F},
only at: HKEY_CLASSSES_ROOT\Wow6432Node\AppID\{7CC9F362-486D-11D1-BB48-0000E838A65F},
but it has no info about the dll or exe.
Best Regards,
Borut
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/python-win32/attachments/20210319/b3e6d06f/attachment.html>
More information about the python-win32
mailing list