PikminDoctor
29-03-2008 13:38:18
This works in C++:
#include "Test.h"
void RunOgre()
{
try
{
// Create application object
TestApp app1;
app1.go();
}
catch( Ogre::Exception& e )
{
MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
}
}
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
#define WIN32_LEAN_AND_MEAN
#include "windows.h"
#endif
INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
{
RunOgre();
RunOgre();
return 0;
}
(...continued next post because i've reached character limit)