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. Calling a function with activeqt
Forum Updated to NodeBB v4.3 + New Features

Calling a function with activeqt

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.0k Views 1 Watching
  • 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.
  • K Offline
    K Offline
    kitten
    wrote on last edited by
    #1

    hi to every one
    i have a c# dll
    i am load it with this code
    @QAxObject *y = new QAxObject(this);
    y->setControl(QString::fromUtf8("dll_name.dll"));
    bool t = y->isNull();@
    it is loaded successfully because t variable is false
    the dll has class named myclass i want to call the functions of this class
    how can i do that?

    www.kitten.mihanblog.com

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      Hi kitten,

      did you read the docs? You should call "setControl":http://doc.qt.nokia.com/4.7/qaxbase.html#control-prop with a valid COM GUID or similar (look at the link) not with a dll name. QAxObject is for wrapping COM objects, not C# stuff. If the C# stuff implements a COM object, you can use it with QAxObject like "described here":http://doc.qt.nokia.com/4.7/qaxbase.html#details

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0

      • Login

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