Results 1 to 2 of 2

Thread: Get the iDispatch interface of an ActiveX control

  1. #1
    Join Date
    Oct 2007
    Posts
    22
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Get the iDispatch interface of an ActiveX control

    Hello,

    I'm quite lost with this. I have an ActiveX component in my Qt application which displays some graphs (IoComp for instance).
    I need to display digital levels of images from a video sequence (@25fps, gray color 16bps), so that means a lot of calls to my ActiveX component : communication through iDispatch interface is obsolutly mandatory.

    So I am wondering if I need to call my component's function with dynamicCall() and/or property()/setProperty()? Or can I do it with queryInterface()?


    Some code:

    The base:
    Qt Code:
    1. QAxWidget* pAxWidget = new QAxWidget(...);
    2. pAxWidget->setControl( "..." );
    To copy to clipboard, switch view to plain text mode 

    queryInterface way:
    Qt Code:
    1. CComPtr< ... > pComponent;
    2. pAxWidget->queryInterface( __uuidof(...), (void**)&pComponent );
    3. pComponent->doSomething();
    To copy to clipboard, switch view to plain text mode 

    dynamicCall/property/setProperty way:
    Qt Code:
    1. pAxWidget->dynamicCall( "doSomething()" );
    To copy to clipboard, switch view to plain text mode 


    Which way is good to use the iDispatch interface of the ActiveX component?

    Thanks in advance.

  2. #2
    Join Date
    Oct 2007
    Posts
    22
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Get the iDispatch interface of an ActiveX control

    Up please!

Similar Threads

  1. Replies: 3
    Last Post: 7th October 2015, 19:43
  2. ActiveQt - How can I hide an ActiveX control ?
    By John82 in forum Qt Programming
    Replies: 2
    Last Post: 11th October 2009, 22:12
  3. ActiveX control
    By Kapil in forum General Discussion
    Replies: 0
    Last Post: 4th October 2006, 09:56
  4. ActiveX Control and Qt
    By munna in forum Newbie
    Replies: 1
    Last Post: 15th April 2006, 22:19
  5. Replies: 6
    Last Post: 3rd February 2006, 09:48

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.