is there anyone familiar with COM? I met problem when changed project from MFC to Qt
Unsolved
General and Desktop
-
Hi,
You should give more details about what you are using and how you are using it.
-
So it's a dll you have control over ?
-
Do you have several calls to CoInitializeEx ?
Are you properly calling CoUninitialize when you're done with your COM stuff ? -
Hi, what error do you get from your CoInitializeEx() call? Try something like:
HRESULT hr = CoInitializeEx(NULL, COINIT_MULTITHREADED); qDebug() << hr;
@hskoglund that DLL with COM is not Qt program...
-
@hskoglund that DLL with COM is not Qt program...
@opengpu
Hi
then use std::cout to show the HRESULT.
It can give hints about why its not loading,.What im a bit puzzled about if that is the same DLL used in the MFC app, and you did not change
the actual DLL code. why should it then stop working?