|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by Gonthax in Windows ATL / WTL / COM Programming, Visual Studio, Microsoft Visual C++
I have an installer application that uses COM and is running in STA mode and I need to call into a Microsoft library that uses MTA exclusively. When the installer calls into the library, the functions return E_FAIL presumably when running internal CoInitializeEx() because of the differing modes.
Unfortunately I don't have the code for either application, but the installer has a way to script contact between the two.
Any ideas on how I can get the calls into the library to work? I thought about writing a shell app that would spawn a thread in MTA mode to call into the Microsoft library, and then terminate the thread when it was done.
TIA,
-G
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625