Codria.cpp 978 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #include "include/bt1.h"
  2. #include "include/bt2.h"
  3. #include "include/bt3.h"
  4. #include "include/bt4.h"
  5. #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
  6. #define WIN32_LEAN_AND_MEAN
  7. #include "windows.h"
  8. #endif
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
  13. INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
  14. #else
  15. int main(int argc, char *argv[])
  16. #endif
  17. {
  18. // Create application object
  19. bt1 b1;
  20. bt2 b2;
  21. bt3 b3;
  22. bt4 b4;
  23. try
  24. {
  25. b2.go();
  26. }
  27. catch( Ogre::Exception& e )
  28. {
  29. #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
  30. MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
  31. #else
  32. std::cerr << "An exception has occured: " <<
  33. e.getFullDescription().c_str() << std::endl;
  34. #endif
  35. }
  36. return 0;
  37. }
  38. #ifdef __cplusplus
  39. }
  40. #endif