comtypes icon indicating copy to clipboard operation
comtypes copied to clipboard

A pure Python, lightweight COM client and server framework, based on the ctypes Python FFI package.

Results 178 comtypes issues
Sort by recently updated
recently updated
newest added

While working with AutoCAD objects ran into app crash. It was reported sometimes as `stack overflow` or `access violation`. Investigation showed that there was a method signature generated as: ```...

bug

The `VARIANT._get_value` method does not unpack arrays of arbitrary type. As seen [here](https://github.com/enthought/comtypes/blob/f269c84159372799cd0f8d7b0ee23f547b0b21ec/comtypes/automation.py#L455), it is assumed that the unpacked type is in the limited `_vartype_to_ctype` dictionary. This is likely the...

bug

Default properties add syntactic sugar to interfaces, as described [here](http://msdn.microsoft.com/en-us/library/az06zx4y%28v=vs.90%29.aspx). `Item` is usually a default property. Comtypes always treats `Item` as a default property, as defined [here](https://github.com/enthought/comtypes/blob/b8179ee7e6036bc00d8493d5be5d09a0ca292c9b/comtypes/__init__.py#L369), but perhaps should...

enhancement
question

The following code fails, and I would expect it to fill the "A" column with the values 0-9. Instead, it blanks the cell values. ``` python import comtypes.client as cc...

bug

Currently Decimal objects are converted to currency variants (VT_CY) when passed as a VARIANT argument. However, there is a decimal VARIANT (http://msdn.microsoft.com/en-us/library/cc234586.aspx), which seems like the less surprising conversion choice....

question

i call a COM function waiting a uint32 with a wrong 16bits array.array('H'). The result is an access violation: File "C:\Python27\lib\site-packages\comtypes__init__.py", line 604, in call_with_inout v = atyp.from_param(v) File "C:\Python27\lib\site-packages\comtypes\safearray.py",...

bug

This bug happened to me a year ago so I'm a little fuzzy on exactly what happened, but it was a doozy. Here is some code that repros the bug...

bug

to get server side modifications of a record marshaled back to the client. With a COM Dual Interface it is possible to get server side changes to record members marshaled...

enhancement
tests

I noticed during the bug fix for #524 that the wrapper module for `mshtml.tlb` have a considerably large file size. Given the large number of definitions in the COM type...

shared_info
help wanted

The function _check_ctypeslib_typecodes() in _npsupport.py returns a dictionary that is also assigned to ctypeslib._typecodes. The dictionary maps numpy dtype string representations ('i4', 'f8', etc.) to ctypes classes. The ctypeslib._typecodes dictionary...

npsupport