Hello there,
Come on guys I need your help. In my pro file I added these lines:
TEMPLATE = app
CONFIG += qt activeqt
RC_FILE = qaxserver.rc
TEMPLATE = app
CONFIG += qt activeqt
RC_FILE = qaxserver.rc
To copy to clipboard, switch view to plain text mode
and in my main.cpp I added these lines:
QAXFACTORY_DEFAULT
(
myClass,
"{ad90301a-849e-4e8b-9a91-0a6dc5f6461f}",
"{87a5b65e-7fa9-4dc6-a176-47295988dcbd}",
"{a6130ae9-8327-47ec-815b-d0b45a0d6e5e}",
"{26c4e136-4e23-4347-af37-faf933b027e9}",
"{a8f21901-7ff7-4f6a-b939-789620c03d83}"
)
int main( int argc, char** argv )
{
{
m_pApp = &app;
myClass * test = new myClass();
app.setMainWidget(test);
test->show();
}
return app.exec();
}
QAXFACTORY_DEFAULT
(
myClass,
"{ad90301a-849e-4e8b-9a91-0a6dc5f6461f}",
"{87a5b65e-7fa9-4dc6-a176-47295988dcbd}",
"{a6130ae9-8327-47ec-815b-d0b45a0d6e5e}",
"{26c4e136-4e23-4347-af37-faf933b027e9}",
"{a8f21901-7ff7-4f6a-b939-789620c03d83}"
)
int main( int argc, char** argv )
{
QApplication app( argc, argv );
if ( !QAxFactory::isServer() )
{
m_pApp = &app;
myClass * test = new myClass();
app.setMainWidget(test);
test->show();
}
return app.exec();
}
To copy to clipboard, switch view to plain text mode
It works perfectly and I can test it in Active Test Container of microsoft. But I cannot use this server in visual basic or any other programme which supports activeX.
Can someone please tell how can I used this in VB? I am not using QT4, we have the 3.4.1 version of QT.
Thnx in advance,
Bookmarks