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