Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Call functions in QAxServer from C#
pdcavaco last edited by pdcavaco
I have built the example http://doc.qt.io/qt-5/activeqt-activeqt-comapp-example.html with the goal of calling functions in a running QT application from C#.
I am able to connect to the ActiveX object and call functions from another C++ process. In C# I have been able to connect to the ActiveX object but calling functions doesn't work.
What needs to be registered, or what wrappers need to be created to be able to call functions on the ActiveX object from C#.
I have tried creating a DLL in C++ which is loaded by C# with the intention of connecting to the ActiveX object within the DLL and passing on function calls that way. This has not worked I get errors that the ActiveX object can't be found.
Any example of how this communication can be done would be greatly appreciated.
Since my main goal is RPC from a C# process to a running C++ QT application any alternative mechanism which I can use would be appreciated too. If there is a better or simpler option other than the ActiveX objects.