-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
33 lines (28 loc) · 681 Bytes
/
main.cpp
File metadata and controls
33 lines (28 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <stdexcept>
#include "Window.h"
#include "Application.h"
#include "MD5Parser.h"
using namespace ST;
using namespace std;
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpszArgument, int nCmdShow)
{
MainWindow = new Window(TEXT("Inverse kinematics"),
WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX,
WS_EX_ACCEPTFILES);
Application* app = 0;
try
{
app = new Application();
}
catch (runtime_error& ex)
{
log("[ERROR] %s", ex.what());
}
if (app)
{
MainWindow->SetKeyEventProcessor(app);
return app->Run();
}
return 0;
}