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

disclaimer: I have no idea how comtypes works, I edited things until CreateObject no longer failed for my particular object.

safearray._ndarray_to_variant_array: ----------> varr.flat = [VARIANT(v) for v in value.flat] causes ValueError: Error setting single item of array.

npsupport

I am passing a 2d array of strings to c++ library. 2d arrays are converted to ndarrays before being placed in safearrays. Temporary VARIANT objects are created to be put...

``` > python -m comtypes.shelllink Traceback (most recent call last): File "c:\...\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\...\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "c:\...\lib\site-packages\comtypes\shelllink.py", line 216,...

bug

I'm trying to call a COM method defined as follows (copy-pasted from the API docs, as I don't have access to the IDL): Function ExportCalibrationToDCM( ExportFileName As String, [ExportChangedOnly As...

When running a Skript as normal user comtypes create a directory for the generated file under 'AppData\Roaming\Python\Python36\comtypes_cache'. In the module '_code_cache.py ' the gen.__path__ is correctly updated, but not the...

This piece of code: ``` from comtypes.client import CreateObject comInstance = CreateObject('Excel.Application', dynamic = True) ``` when not having Microsoft Office (Excel) installed, throws the following error: ``` Traceback (most...

Hi, I am using comtypes 1.1.3 on Windows 7 64bit, Python 2.7.3 64bit. Using this code: ```python import comtypes.client XLS = r"D:\Working\ExcelFile.xlsm" xls_app = comtypes.client.CreateObject("Excel.Application") xls_app.Workbooks.Open(XLS, False, False) xls_app.Quit() ```...

Here is a C++ declaration for a method of a COM object: virtual HRESULT STDMETHODCALLTYPE InitEx( /* [in] */ long side, /* [out][in] */ IMemory __RPC_FAR *__RPC_FAR *control, /* [retval][out]...

help wanted

Here is a vba example in autocad, ```vb returnPnt = ThisDrawing.Utility.GetPoint(, "Enter a point: ") ``` the first parameter is optional. so how to pass the first parameter to the...