charcoal/OpenGLEngine/main.cpp

25 lines
487 B
C++
Raw Normal View History

#include "stdafx.h"
#include <string>
#include "Exception.h"
2018-09-04 19:25:54 +00:00
#include "MyApplication.h"
2018-09-04 19:41:17 +00:00
int WINAPI WinMain(HINSTANCE h_instance, HINSTANCE h_prev_instance, LPSTR cmd_line, int n_cmd_show)
{
try
{
MyApplication my_app;
return my_app.run();
}
catch (Exception& e)
{
OutputDebugString("Caught Exception: [");
OutputDebugString(e.get_class_name().c_str());
OutputDebugString("]: ");
OutputDebugString(e.get_message().c_str());
OutputDebugString("\n");
return 1;
}
2018-09-04 19:25:54 +00:00
}