Changeset 454 for code/branches/objecthierarchy/src/orxonox/orxonox.cc
- Timestamp:
- Dec 10, 2007, 5:56:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/orxonox.cc
r443 r454 43 43 44 44 #include "core/CoreIncludes.h" 45 #include "core/SignalHandler.h" 45 46 #include "objects/Tickable.h" 46 47 #include "objects/Timer.h" … … 781 782 using namespace Ogre; 782 783 783 #if OGRE_PLATFORM == PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WIN32784 #define WIN32_LEAN_AND_MEAN785 #include "windows.h"786 787 INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT)788 #else784 //#if OGRE_PLATFORM == PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WIN32 785 //#define WIN32_LEAN_AND_MEAN 786 //#include "windows.h" 787 788 // INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT) 789 //#else 789 790 int main(int argc, char **argv) 790 #endif791 //#endif 791 792 { 792 793 try 793 794 { 795 SignalHandler::getInstance()->doCatch(argv[0], "orxonox.log"); 794 796 orxonox::OrxApplication orxonox; 795 797 orxonox.go(); … … 797 799 catch(Exception& e) 798 800 { 799 #if OGRE_PLATFORM == PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WIN32800 MessageBoxA(NULL, e.getFullDescription().c_str(), "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL);801 #else801 //#if OGRE_PLATFORM == PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WIN32 802 // MessageBoxA(NULL, e.getFullDescription().c_str(), "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL); 803 //#else 802 804 fprintf(stderr, "An exception has occurred: %s\n", 803 805 e.getFullDescription().c_str()); 804 #endif806 //#endif 805 807 } 806 808
Note: See TracChangeset
for help on using the changeset viewer.