Hi Mark,
- "you would define a function called "ObjectName_EventName"
Thank you again! This is valuable info. In the following pseudo-code, the
Host COM Object implements TWO Events interfaces. How should I defined
relevant event sink functions? For example, if the object instance is named
Thank you again Mark.
In framework.py, Line 223 - Line 235, I see that it only searches for [source,
default] interface on the coclass. That means, multiple event interface is
NOT supported for now.
I think I'll have to use "win32com.client.connect.SimpleConnection()" to
manually create the
I am still struggling with PyActiveScripting COM events.
Is there a way to "step into" the framework code while running the C++ host? I
found PyDump - how can I make use of it?
Thank you
Wuping
-- Original Message --
From "Mark Hammond"
mailto:mhamm...@skippinet.com.au>>
To "Wuping X
For the following code, the method "GetPerson" has no explicit argument (except
self).
class MyCOMObject:
_public_methods_ = ["GetPerson"]
#_reg_clsid_ = '{44ee76c7-1290-4ea6-8189-00d5d7cd712a}'
#_reg_desc_ = "My COM server"
#_reg_progid_ = "MyCOMObject"
def get_person(self):
A better fix is to change Line 639 of win32com/server/policy.py to the
following:
import inspect
if len(inspect.getfullargspec(func).args) == 1:
return func()
else:
return func(*args)
Then
Thanks. I'll submit a PR.
When calling from a Delphi COM client (using OleVariant ), arg[0] will be set
by Delphi a value of 0x8002000C, when the target Python method has NO argument
(i.e., taking only "self"). This makes args non-empty.
When calling from a C++ MFC/COM client, arg[0] will be s
I created a new issue (with sample Delphi project to replicate the issue,
including the Python source file where the COM server is defined):
https://github.com/mhammond/pywin32/issues/2043
And I submit a PR:
https://github.com/mhammond/pywin32/pull/2044
Thank you.
Wuping
-- Original Messag
When I running a Python Active Script, DebugView captured the following
errrors - any advice?
[22076] File
"C:\Users\.\AppData\Local\Programs\Python\Python39\lib\site-packages\win32comext\axscript\client\framework.py",
line 729, in SetScriptSite
[22076] from . import debug
[22076] File
OK, I think this is a bug of pywin32,
Line 37 of \win32comext\axdebug\documents.py,
class DebugDocumentText(
gateways.DebugDocumentInfo, gateways.DebugDocumentText,
gateways.DebugDocument
gateway.DebugDocumentText already inherits from gateway.DebugDocument. This
would cause Python to g
Hi All,
I am trying to debug Python Active Scripting, using Visual Studio. I am
100% sure it should work but I just cannot get it work.
I've installed the debug symbols of the Python version, and installed
Visual Studio Python Native Development tools.
I also set the "Debugging" registry e
pically via win32traceutil) must be done. Unfortunately,
I'm not aware of anyone trying to use the VS tools in this way.
Good luck,
Mark
On 2025-02-28 8:54 p.m., Wuping Xin via python-win32 wrote:
Hi All,
I am trying to debug Python Active Scripting, using Visual Studio. I
am 100% sure it shou
The problem is that for Python 3.11+, the frame object has changed,
hence axdebug is not built for it.
Question: Would this be fixed any time soon? This feature is
definitely needed for Python Active Script debugging. Also even with
other Python binding framework such as pybind11, Active
Forget it. I figured out.
W. X.
-- Original Message --
From python-win32-requ...@python.org
To python-win32@python.org
Date 3/1/2025 12:00:02 PM
Subject python-win32 Digest, Vol 258, Issue 1
Send python-win32 mailing list submissions to
python-win32@python.org
To subscribe
13 matches
Mail list logo