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. COM (DLL) ActiveQt
Qt 6.11 is out! See what's new in the release blog

COM (DLL) ActiveQt

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.6k 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.
  • P Offline
    P Offline
    paulanon
    wrote on last edited by
    #1

    I'm trying to access functions in COM (dll file). I used dynamicCall() to make calls. But the out-parameters only work for int (and not e.g. QString). What am I doing wrong?!

    @//void GetVersionNumber (int&)
    QVariantList params; params.append(0);
    object->dynamicCall("GetVersionNumber(int&)", params);
    std::cout << "params = " << params[0].toInt() << std::endl; //returns 64. Great!

    //void GetInstSoftwareVersion (QString&)
    QVariantList params;
    params.append("xx");
    ptr->dynamicCall("GetInstSoftwareVersion(QString &)", params);
    std::cout << "GetInstSoftwareVersion:sarray[0] = " << params[0].toString().toStdString() << std::endl; //returns "xx" and not e.g. "1.00" Why??? Driving me nuts!
    @

    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