Gizmo.cpp 1002 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // GLGizmo - the initial Delphi code by Adirex, Degiovani, Delauney, Mrqzzz
  3. //
  4. // 22/01/13 - PW - Conversion to CPP
  5. //
  6. //---------------------------------------------------------------------------
  7. #include <vcl.h>
  8. #pragma hdrstop
  9. #include <tchar.h>
  10. //---------------------------------------------------------------------------
  11. USEFORM("Unit1.cpp", Form1);
  12. //---------------------------------------------------------------------------
  13. int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
  14. {
  15. try
  16. {
  17. Application->Initialize();
  18. Application->MainFormOnTaskBar = true;
  19. Application->CreateForm(__classid(TForm1), &Form1);
  20. Application->Run();
  21. }
  22. catch (Exception &exception)
  23. {
  24. Application->ShowException(&exception);
  25. }
  26. catch (...)
  27. {
  28. try
  29. {
  30. throw Exception("");
  31. }
  32. catch (Exception &exception)
  33. {
  34. Application->ShowException(&exception);
  35. }
  36. }
  37. return 0;
  38. }
  39. //---------------------------------------------------------------------------