Re: [python-win32] Welcome to the "python-win32" mailing list (Digest mode)

2022-11-08 Thread Dennis Lee Bieber
On Tue, 08 Nov 2022 15:53:19 -, Brian Johnson declaimed the following: >Hi python-win32 community.I am trying to get this toy COM server (code is >below) to work. It is the sample code from "Python Programming for Win32" and >adapted for python 3.10. When I test it using VBA in Word, I get

Re: [python-win32] Welcome to the "python-win32" mailing list (Digest mode)

2022-11-08 Thread Mark Hammond
pythoncom.CLSCTX_LOCAL_SERVER means this COM object will be hosted by python.exe - so COM/office is going to look up the registry to get a command-line to execute. As written, that will just re-register the COM server - so yes, you do want that `localserver.serve()`. The default of

Re: [python-win32] Welcome to the "python-win32" mailing list (Digest mode)

2022-11-08 Thread Brian Johnson
Hi python-win32 community.I am trying to get this toy COM server (code is below) to work. It is the sample code from "Python Programming for Win32" and adapted for python 3.10. When I test it using VBA in Word, I get this error:Run-time error '429':ActiveX component can't create objectI don't