forked from gen-xu/MagMaestroV1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMagMaestro.cpp
More file actions
31 lines (24 loc) · 920 Bytes
/
MagMaestro.cpp
File metadata and controls
31 lines (24 loc) · 920 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
// MagMaestro.cpp : main project file.
#include "stdafx.h"
#include "Form1.h"
using namespace MagMaestro;
//[DllImport( "kernel32.dll" )]
//static bool AttachConsole( int dwProcessId );
//const int ATTACH_PARENT_PROCESS = -1;
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
AttachConsole(-1);
Console::WriteLine("");
Console::WriteLine("MagMaestro.cpp - main() entered");
// Enabling Windows XP visual effects before any controls are created
Application::EnableVisualStyles();
Console::WriteLine("MagMaestro.cpp - (1/2) Visual Styles Enabled");
Application::SetCompatibleTextRenderingDefault(false);
Console::WriteLine("MagMaestro.cpp - (2/2) Set Compatible Text Rendering Default false");
// Create the main window and run it
Console::WriteLine("MagMaestro.cpp - Running Form...");
Application::Run(gcnew Form1());
Console::WriteLine("MagMaestro.cpp - Closed Form");
return 0;
}