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:
pAxWidget->setControl( "..." );
QAxWidget* pAxWidget = new QAxWidget(...);
pAxWidget->setControl( "..." );
To copy to clipboard, switch view to plain text mode
queryInterface way:
CComPtr< ... > pComponent;
pAxWidget->queryInterface( __uuidof(...), (void**)&pComponent );
pComponent->doSomething();
CComPtr< ... > pComponent;
pAxWidget->queryInterface( __uuidof(...), (void**)&pComponent );
pComponent->doSomething();
To copy to clipboard, switch view to plain text mode
dynamicCall/property/setProperty way:
pAxWidget->dynamicCall( "doSomething()" );
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.
Bookmarks