Changeset 19 for code/branches/tutorial/Tutorial/main.cpp
- Timestamp:
- Oct 10, 2007, 10:36:17 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial/Tutorial/main.cpp
r10 r19 58 58 }; 59 59 60 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN3261 #define WIN32_LEAN_AND_MEAN62 #include "windows.h"60 //#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 61 //#define WIN32_LEAN_AND_MEAN 62 //#include "windows.h" 63 63 64 INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )65 #else64 //INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT ) 65 //#else 66 66 int main(int argc, char **argv) 67 #endif67 //#endif 68 68 { 69 69 // Create application object … … 73 73 app.go(); 74 74 } catch( Exception& e ) { 75 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN3276 MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL);77 #else75 //#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 76 // MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL); 77 //#else 78 78 fprintf(stderr, "An exception has occurred: %s\n", 79 79 e.getFullDescription().c_str()); 80 #endif80 //#endif 81 81 } 82 82
Note: See TracChangeset
for help on using the changeset viewer.