activeqtexe.cpp 717 B

123456789101112131415161718192021222324252627282930313233343536
  1. #include <QApplication>
  2. #ifndef QT_QAXSERVER_LIB
  3. #error Expected QT_QAXSERVER_LIB
  4. #endif
  5. #include <QAxFactory>
  6. class MyObject : public QObject
  7. {
  8. Q_OBJECT
  9. public:
  10. MyObject(QObject *parent = 0)
  11. : QObject(parent)
  12. {
  13. }
  14. };
  15. QAXFACTORY_DEFAULT(MyObject,
  16. "{4dc3f340-a6f7-44e4-a79b-3e9217685fbd}",
  17. "{9ee49617-7d5c-441a-b833-4b068d41d751}",
  18. "{13eca64b-ee2a-4f3c-aa04-5d9d975779a7}",
  19. "{ce947ee3-0403-4fdc-895a-4fe779344b46}",
  20. "{8de435ce-8d2a-46ac-b3b3-cb800d0547c7}");
  21. int main(int argc, char **argv)
  22. {
  23. QApplication app(argc, argv);
  24. QAxFactory::isServer();
  25. return app.exec();
  26. }
  27. #include "activeqtexe.moc"