Re: [python-win32] [win32com] Meaning of "TypeError: Only com_record objects can be used as records"?

2020-05-01 Thread Terry Davis
Hi Tim, Thanks for the pointer! I'll let the maintainers of this software know. Do you know if applying this fix is sufficient for win32com to successfully handle returned structs? -Terry On Mon, Apr 27, 2020 at 11:32 PM Tim Roberts wrote: > > On Apr 27, 2020, at 12:58 PM, Terry Davis

Re: [python-win32] [win32com] Meaning of "TypeError: Only com_record objects can be used as records"?

2020-04-27 Thread Terry Davis
be missed by win32com? On Wed, Apr 22, 2020 at 9:28 AM Terry Davis wrote: > Any ideas? > > On Tue, Jan 28, 2020 at 1:06 PM Terry Davis > wrote: > >> Update 2: After discovering the `pythoncom.GetRecordFromGuids` and >> `.GetRecordFromTypeInfo` (with the comment: "This f

Re: [python-win32] [win32com] Meaning of "TypeError: Only com_record objects can be used as records"?

2020-04-22 Thread Terry Davis
Any ideas? On Tue, Jan 28, 2020 at 1:06 PM Terry Davis wrote: > Update 2: After discovering the `pythoncom.GetRecordFromGuids` and > `.GetRecordFromTypeInfo` (with the comment: "This function will fail if the > specified type info does not have a guid defined"). > >

Re: [python-win32] determine the default printer from RDP

2020-02-26 Thread Terry Davis
Hi John, In the Windows RDP client, under "Show Options" -> "Local Resources" -> section "Local devices and resources" is "Printers" checked? I haven't tried what you're referring to, but perhaps that setting is relevant to your problem? - Terry On Tue, Feb 25, 2020 at 5:51 PM john wrote: >

Re: [python-win32] [win32com] Meaning of "TypeError: Only com_record objects can be used as records"?

2020-01-28 Thread Terry Davis
ead: https://grokbase.com/t/python/python-win32/0821b2n4e5/how-to-create-a-com-record which appears to be related to my problem, but no solutions were identified. (I tried the `DumbDispatch` solution; it didn't work). On Mon, Jan 27, 2020 at 4:31 PM Terry Davis wrote: > Update: The functions th

[python-win32] [win32com] Meaning of "TypeError: Only com_record objects can be used as records"?

2020-01-28 Thread Terry Davis
Hi all, I tried searching the mailing list archives for "com_record" but didn't find anything relevant. For context, I'm trying to access a COM interface defined in a .tlb file. Here's a skeleton of the script I'm using to expose this interface: import pythoncom from win32com.client import

Re: [python-win32] [win32com] Meaning of "TypeError: Only com_record objects can be used as records"?

2020-01-28 Thread Terry Davis
browser (python -m win32com.client.combrowse)? Thanks, Terry On Mon, Jan 27, 2020 at 3:33 PM Terry Davis wrote: > Hi all, > > I tried searching the mailing list archives for "com_record" but didn't > find anything relevant. > > For context, I'm trying to access a COM inte