Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Call functions in QAxServer from C#
Forum Update on Monday, May 27th 2025

Call functions in QAxServer from C#

Scheduled Pinned Locked Moved Unsolved General and Desktop
qaxservercomnet
1 Posts 1 Posters 907 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pdcavaco
    wrote on 17 Apr 2016, 22:05 last edited by pdcavaco
    #1

    Hello,

    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.

    1 Reply Last reply
    0

    1/1

    17 Apr 2016, 22:05

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved