#include "stdafx.h" #include #include "Exception.h" #include "MyApplication.h" int WINAPI WinMain(HINSTANCE h_instance, HINSTANCE h_prev_instance, LPSTR cmd_line, int n_cmd_show) { try { MyApplication my_app("my_app", h_instance); 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; } }