Skip to content

KeyError: <class 'ctypes.HRESULT'>, _ctype_to_vartype, HRESULT: VT_HRESULT #668

@davidschranz

Description

@davidschranz

Thank you for the wonderful comtypes. I sucessfully use it to interact with a COM interface 'HeidenhainDNC.dll'

The only thing I had to modify was the '_ctype_to_vartype' dict within the 'automation.py' file:
_ctype_to_vartype: Dict[Type[_CData], int] = {
HRESULT: VT_HRESULT, # added this line for HeidenhainDNC.dll to work

How could I use the comtypes package without modifing this file?
Any hint are appreciated.

comtypes 1.4.8
python 3.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions