XWL
asked on
Help! How to change threading model of an ATL Component interface after it is built?
Hi there,
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,
XWL
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,
XWL
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Create two new projects with the same names, create the same interface in each of them. Use Apartment in one case, Both or Free in another case. Run WinDiff to see the difference between projects. Make the same changes in your existing project.
ASKER
It works!
Thank you evry much, Privesh. Thank you too, AlexFM.
Thank you evry much, Privesh. Thank you too, AlexFM.