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. Active Qt: How To Implement ISomething COM Interface
Forum Updated to NodeBB v4.3 + New Features

Active Qt: How To Implement ISomething COM Interface

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 311 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.
  • S Offline
    S Offline
    Sam Thomsen
    wrote on 21 Aug 2020, 12:00 last edited by
    #1

    Apologies if I'm missing something obvious, but after many hours searching and experimenting, I cannot figure out how to use Active Qt to implement a published COM interface. I have a type library and dumpcpp allows me to create a Qt wrapper to consume an object implemented externally, but I can't figure out how to create a Qt object that implements the COM interface.

    I can see how Active Qt makes it easy to implement IDispatch with a QObject or QWidget. But I don't need IDispatch.

    The opengl example shows how to extend a QObject with a published interface via QAxAggregated, but this seems unnecessary.

    I must be missing something.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Sam Thomsen
      wrote on 21 Aug 2020, 13:52 last edited by
      #2

      To provide more background, we want to implement an Excel COM add-in by implementing Microsoft's _IDTExtensibility2 COM interface. Perhaps I am confused, but I assumed I needed to create a COM object that implements that interface - that "is a" _IDTExtensibility2 object. Is this wrong? I am obviously missing something here.

      1 Reply Last reply
      0
      • H Online
        H Online
        hskoglund
        wrote on 21 Aug 2020, 19:46 last edited by
        #3

        Hi, you can implement the _IDTExtensibility2 COM interface using the QAxServer class (in-process server). But the _IDTExtensibility2 interface is so much last century technology :-(

        Instead, consider trying the Javascript flavored addins to Excel (they also work on Excel for Macs or iPads)

        S 1 Reply Last reply 22 Aug 2020, 09:03
        1
        • H hskoglund
          21 Aug 2020, 19:46

          Hi, you can implement the _IDTExtensibility2 COM interface using the QAxServer class (in-process server). But the _IDTExtensibility2 interface is so much last century technology :-(

          Instead, consider trying the Javascript flavored addins to Excel (they also work on Excel for Macs or iPads)

          S Offline
          S Offline
          Sam Thomsen
          wrote on 22 Aug 2020, 09:03 last edited by
          #4

          @hskoglund - I will investigate the Javascript approach. Thanks.

          I would still be interested in how to implement a published interface using Active Qt. I believe QAxServer is a module, not a class.

          1 Reply Last reply
          0

          1/4

          21 Aug 2020, 12:00

          • Login

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