Help! How to change threading model of an ATL Component interface after it is built?
Posted on 2003-03-27
I have successfully built an ATL COM project and implemented several interfaces (VC++ 6.0 on Windows 2000/PK3). Unfortunately, when I am almost finished it, I found threading model of one of the interfaces must be changed from “Apartment” to “both” or “Free”. Since the project has quite complicated cross-references, I don’t want to rebuild the project for the purpose. I am wondering whether it is possible to change the threading model of an interface without rebuild it. Could anybody give me an idea?
Thanks in advance,