Saturday, March 25, 2017

Python win32com multithreading

Some notes on MS COM programming in Python. It is not a well documented topic. The only really helpful source is book Python Programming On Win32. Here I explain how to run two different COM event handlers in two separate threads. Example provided implements simple interaction with Excel app. But the method is universal, and I used it for accessing ITinvest SmartCOM API.