I’m currently trying to use the example project Com App which is given with the Qt installation (Qt_folder\Examples\4.7\activeqt\comapp)
I’m using version 4.7.4 on Windows, Qt Creator 2.3.0 and MinGw compiler.
So the example project compiles and runs fine, but it seems the COM server informations are not registered into the registry because I’m not able to reach it from any scripts, and I also cannot find UID in the registry, meaning that the COM server is not registered.
I’m trying to find a solution from 3 days ago and I’m starting to be desperate. Any help is welcome.
p.s. Sorry for my english, it’s not my native language
Not sure if Qt looks after this under the hood but are you sure that your thread is being initialized for COM by calling
CoInitializeEx
?I've been using some COM and Qt at work and this is sometimes something is overlooked.
CoInitializeEx Function
Here is an example of using the function.