How to add an ActiveX control to Qt form from custom DLL
Well, I'm trying to achieve the following: add and ActiveX control (AxExpressViewerDll::AxCExpressViewerControl from AutoDesk) to a Qt form. But, there is no way to get the object to load from DLL, for example (the long number is the UUID taken from Visual Studio):
QAxWidget* wmp = new QAxWidget();
wmp->setControl("{55523A67-A054-4064-B88D-0070305C9F95}");
VS picks up the COM object fine, the .dll (AdView.dll) was registered with regsvr32, I even linked the dll directly to the project with the LIBS directive. I even tried this: link
I always get:
CoCreateInstance failure (Class not registered)
QAxBase::se开发者_JAVA百科tControl: requested control {55523A67-A054-4064-B88D-0070305C9F95} could not be instantiated
Any help would be appreciated
answsered after months, but still might be helpful :
Maybe you should take look at the qtbrowser plugin : http://doc.qt.nokia.com/solutions/4/qtbrowserplugin/
Instead of developing and ActiveX and then embedding it into qt, use directly qt. Unless you want your activeX to be available outside qt...
精彩评论