Re: [python-win32] in-process COM DLL in Python

2023-04-15 Thread Wuping Xin
Forget it. I figured it our by looking into Chapter 12 of the Book - Python Programming On Win32. What a Bible it is. Cheers. -- Original Message -- From "Wuping Xin" To python-win32@python.org Date 4/15/2023 5:27:47 PM Subject in-process COM DLL in Python I'd like to return anot

Re: [python-win32] in-process COM DLL in Python

2023-04-15 Thread Mark Hammond
You should be able to wrap a Person object - something like ob = win32com.server.util.wrap(Person(...)) - and just return that. You probably don't need the VARIANT dance, it should just work based on the type returned being a Dispatch wrapper. HTH, Mark On 16/4/2023 7:27 am, Wuping Xin wrote

[python-win32] in-process COM DLL in Python

2023-04-15 Thread Wuping Xin
I'd like to return another Python object, using a method of a COM object defined using Python, something like below - is that doable? For in process COM object defined through Python, is there any limitation about the types that can be returned from COM method? class Person: _public_metho