I was answering the general request, not so much a specific post. Everything I know about ActiveQt as a COM client comes from the docs in Assistant, specifically http://doc.trolltech.com/4.6/activeqt-container.html and also the Qutlook example.
Have you tried a minimal example? Something like:
trial.pro
TEMPLATE = app
TARGET = trial
CONFIG += qaxcontainer
TYPELIBS = Disto2.tlb
SOURCES += main.cpp
TEMPLATE = app
TARGET = trial
CONFIG += qaxcontainer
TYPELIBS = Disto2.tlb
SOURCES += main.cpp
To copy to clipboard, switch view to plain text mode
main.cpp:
#include "disto.h" // <<<<< adjust this to suit the file name generated by dumpcpp
#include <QApplication>
#include <QDebug>
int main(int argc, char ** argv)
{
Disto2::Disto disto;
qDebug() << disto.DistoVersion(); // I am assuming this returns QString or an int
return a.exec();
}
#include "disto.h" // <<<<< adjust this to suit the file name generated by dumpcpp
#include <QApplication>
#include <QDebug>
int main(int argc, char ** argv)
{
QApplication a(argc, argv);
Disto2::Disto disto;
qDebug() << disto.DistoVersion(); // I am assuming this returns QString or an int
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks