2
0

Raycast.cpp 950 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // 02/02/2013 - PW - First draft of convertion from Delphi to C++
  3. //
  4. //---------------------------------------------------------------------------
  5. #include <vcl.h>
  6. #pragma hdrstop
  7. #include <tchar.h>
  8. //---------------------------------------------------------------------------
  9. USEFORM("Unit1.cpp", Form1);
  10. //---------------------------------------------------------------------------
  11. int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
  12. {
  13. try
  14. {
  15. Application->Initialize();
  16. Application->MainFormOnTaskBar = true;
  17. Application->CreateForm(__classid(TForm1), &Form1);
  18. Application->Run();
  19. }
  20. catch (Exception &exception)
  21. {
  22. Application->ShowException(&exception);
  23. }
  24. catch (...)
  25. {
  26. try
  27. {
  28. throw Exception("");
  29. }
  30. catch (Exception &exception)
  31. {
  32. Application->ShowException(&exception);
  33. }
  34. }
  35. return 0;
  36. }
  37. //---------------------------------------------------------------------------