[python-win32] AddObject from C

2023-09-19 Thread dzzie via python-win32
Hi guys I am working with an embedded interpreter, how can I share an existing COM object from the C api ?(without using the ROT) Background: The host process is VB6 with a C helper DLL. I have stripped down the pywin32 library to compile directly into my helper dll with just the COM access feat

Re: [python-win32] AddObject from C

2023-09-19 Thread dzzie via python-win32
Seems to be solved: /lib/site-packages/pycom/__init__.py def GetObject(Pathname=None, Class=None, clsctx=None): ...if Class is not None:     return GetActiveObject(Class, clsctx)     else:     #first check

[python-win32] VB6 Listbox methods fail through ROT

2023-10-04 Thread dzzie via python-win32
Wondering if anyone might have an insight on this. If we add a vb6 listbox to the ROT, and try to access it using GetObjectwe can not access any of its methods with an error "Member not found" import win32com.client form1 = win32com.client.GetObject('PyComTest.Form1') form1.caption = "hi from v