Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

'_RemotableHandle' type error when trying to use ActiveX in Qt



  • We have an internal ActiveX COM control (written in C++) that I'm trying to use in the new Qt app. Note that we've successfully used it in regular C++ and also in WinForms (.NET) windows applications and it works.

    I used dumpcpp to generate .h/.cpp files, which worked without any issue but the code won't compile because of missing _RemotableHandle definition. I do see a forward declaration for it though, actually its in the header file twice (but only declaration):

    struct _RemotableHandle;
    

    Spent some time on google and it looks like this is a COM type used for HWND. How do I fix this error? I don't see anyone else having this issue, maybe I'm doing something wrong?


Log in to reply