activeqtexe.cpp 696 B

1234567891011121314151617181920212223242526272829303132333435
  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, "{4dc3f340-a6f7-44e4-a79b-3e9217685fbd}",
  16. "{9ee49617-7d5c-441a-b833-4b068d41d751}",
  17. "{13eca64b-ee2a-4f3c-aa04-5d9d975779a7}",
  18. "{ce947ee3-0403-4fdc-895a-4fe779344b46}",
  19. "{8de435ce-8d2a-46ac-b3b3-cb800d0547c7}");
  20. int main(int argc, char** argv)
  21. {
  22. QApplication app(argc, argv);
  23. QAxFactory::isServer();
  24. return app.exec();
  25. }
  26. #include "activeqtexe.moc"