|
//---------------------------------------------------------------------------
#include <vcl.h>
#include "MainFormUnit.h"
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("MainFormUnit.cpp", MainForm);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
try
{
Application->Initialize();
HCURSOR r = LoadCursor(NULL, MAKEINTRESOURCE(IDC_HAND));
Screen->Cursors[crHandPoint] = r;
Application->CreateForm(__classid(TMainForm), &MainForm);
if (MainForm->parse()) {
return 0;
}
Application->Run();
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
catch (...)
{
try
{
throw Exception("");
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
}
return 0;
}
//---------------------------------------------------------------------------
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
James Fancy, is a software engineer from China. He enjoys and familiar with Java, C++ and some script languages.
If you can read Chinese word, here is one of James Fancy's BLOG:
http://hi.baidu.com/jamesfancy