main.cpp 407 B

12345678910111213141516171819202122
  1. #include "CmQtEditor.h"
  2. #include <string>
  3. #include <QtWidgets/QApplication>
  4. #include <windows.h>
  5. int CALLBACK WinMain(
  6. _In_ HINSTANCE hInstance,
  7. _In_ HINSTANCE hPrevInstance,
  8. _In_ LPSTR lpCmdLine,
  9. _In_ int nCmdShow
  10. )
  11. {
  12. int argc = 1;
  13. char** argv = new char*[1];
  14. argv[0] = "CamelotEditor.exe";
  15. QApplication a(argc, argv);
  16. CamelotEditor w;
  17. w.show();
  18. return a.exec();
  19. }