1 |
// GR2RigEditor.cpp : main project file. |
2 |
#include <assert.h> |
3 |
#include "granny.h" |
4 |
#include "..\gr2lib_cpp\guicon.h" |
5 |
#include "..\gr2lib_cpp\gr2lib_rigeditor_frm.h" |
6 |
|
7 |
using namespace System::Diagnostics; |
8 |
|
9 |
[STAThreadAttribute] |
10 |
int main(array<System::String ^> ^args) |
11 |
{ |
12 |
// Enabling Windows XP visual effects before any controls are created |
13 |
Application::EnableVisualStyles(); |
14 |
Application::SetCompatibleTextRenderingDefault(false); |
15 |
try |
16 |
{ |
17 |
AttachConsole_(); |
18 |
// Create the main window and run it |
19 |
Application::Run(gcnew gr2lib_rigeditor_frm()); |
20 |
FreeConsole_(); |
21 |
} |
22 |
catch(Exception^ ex) |
23 |
{ |
24 |
System::Diagnostics::Debug::WriteLine(ex->ToString()); |
25 |
} |
26 |
return 0; |
27 |
} |