Category : activex

I have an executable .exe file, this executable is only executed by an ActiveX DLL, since internet explorer is not used much anymore, I wanted to know if it is possible to "load" the dll and run it the same way as internet explorer does it with CLSID, and create a simple c++ application that ..

Read more

Good day, stackoverflow community. Have a non-trivial question. For displaying web content we are using ActiveX. We decided to switch to QWebEngine, but were faced with the problems: ActiveX allows us: save HTML anchors in QAxObject listen to anchors click events extract and change anchors properties ("id", "href") Example of code: CComPtr<IHTMLDocument2> m_htmlDocument; CComPtr<IHTMLElementCollection> htmlAnchorsCollection; ..

Read more

BSTR CCtrl::mosMsgFromHost(BSTR mosMsg) { AFX_MANAGE_STATE(AfxGetStaticModuleState()); AfxMessageBox(mosMsg); mainDialog.GetWebView()->PostWebMessageAsString(mosMsg); std::unique_lock<std::mutex> ul(m); cv.wait(ul); AfxMessageBox(mainDialog.receivedMessage); return mainDialog.receivedMessage.AllocSysString(); } I have laid out a WebView2 component in ActiveX Control. When its following method is called, it forwards the message it gets to WebView2 to be processed and returned by means of an event that notifies cv, which is the condition ..

Read more

I apologize, but I’m a little confused. I was wondering what the simplest way to render an HTML string to an HWND is. This question/answer suggests that all you need is CLSID_HTMLDocument. But does that suffice for rendering? I would have thought that to render, you’d also need CLSID_WebBrowser. Any clarification is greatly appreciated. Source: ..

Read more

I’m trying handle key press event from my webview2 inside a Qt widget since the WebView2 control is based on the Component Object Model (COM). I’m trying to use ICoreWebView2Controller as IUnknown to wrap this inside a QAxObject or QAxWidget to get access to the COM object and fetch the webview event from my main ..

Read more

I am currently using QTaxcontainer to use COM in a simple main file. I have an object: QAxObject *myComObj("the.Name"); which is initialized correctly as I successfully accessed some simple functions using: myComObj->dynamicCall("easyFun()"); Now I hava a more complex method to access which needs a BSTR, it is defined on the activeX side as: [id(2)] void ..

Read more