comtypes
comtypes copied to clipboard
A pure Python, lightweight COM client and server framework, based on the ctypes Python FFI package.
This is a re-post of a bug report that was originally posted in the merged PR #525, to prevent it from being overlooked. Changes to prevent this error have been...
Based on the posts in the issues so far, I have decided to clearly state the frequently asked questions in the README. By reducing the iterations of these questions and...
See #474. I migrated the code from the old `istream-issue` branch to the latest `main` branch. Let me know if anything else needs to be done. Closes #474
Is there any plan/ability to support WSL? The module installs fine from Python in WSL but complains `ImportError: cannot import name 'COMError' from '_ctypes'` on import. Same issue in Cygwin...
I use comtypes for making several local servers to provide plugins for another application. I have a lot of challenges working with the MessageLoop class (https://github.com/enthought/comtypes/blob/76c35421c3d8f41e97db861209b4f640b0061b0b/comtypes/messageloop.py#L18) for single threaded apartments,...
I noticed that the tests for `comtypes.npsupport` fail when `numpy==2.0.0` is installed. ``` ERROR: test_VT_I4_ndarray_enabled (test_npsupport.NumpySupportTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "...\comtypes\comtypes\test\test_npsupport.py", line 66, in call_enabled func(self) File...
Modern packaging methods were introduced in #556 and #557. Until then, the code base in `setup.py` was old, such as not having `distutils` replaced by `setuptools` until Python 3.12 support....
We are looking to reduce the number of rules ignored in `tool.ruff.lint.per-file-ignores` by delinting the codebase. This is a great opportunity for new contributors to get involved! **Guidelines:** - We...
In the early stages of this project, when Windows CE was still supported, safearrays didn’t work, so a workaround was added in commit 37daf09. In relation to `safearray` and `automation`,...
Coming from `C++` COM, where very simple COM usage looks like ``` IFoo* foo; HRESULT hr = CoCreateInstance(rclsid, pUnkOuter, dwClsContext, riid, (void**) &foo); if (SUCCEEDED(hr)) { // do something with...