CanvasC.cpp 921 B

123456789101112131415161718192021222324252627282930313233343536
  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. #include <tchar.h>
  5. //---------------------------------------------------------------------------
  6. USEFORM("fCanvasC.cpp", FormCanvas);
  7. //---------------------------------------------------------------------------
  8. int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
  9. {
  10. try
  11. {
  12. Application->Initialize();
  13. Application->MainFormOnTaskBar = true;
  14. Application->CreateForm(__classid(TFormCanvas), &FormCanvas);
  15. Application->CreateForm(__classid(TFormCanvas), &FormCanvas);
  16. Application->Run();
  17. }
  18. catch (Exception &exception)
  19. {
  20. Application->ShowException(&exception);
  21. }
  22. catch (...)
  23. {
  24. try
  25. {
  26. throw Exception("");
  27. }
  28. catch (Exception &exception)
  29. {
  30. Application->ShowException(&exception);
  31. }
  32. }
  33. return 0;
  34. }
  35. //---------------------------------------------------------------------------