728x90
반응형
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Project1.cpp | |
//--------------------------------------------------------------------------- | |
#include <vcl.h> // VCL 사용 시, 기본은 이거... | |
#pragma hdrstop // 프리컴파일러 최적화 ; #include 처리 후에 써 준다... | |
USEFORM("Unit1.cpp", Form1); // 매크로 ; 폼을 사용한다는 매크로이겄슴... | |
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) // entry point | |
{ | |
try // try ... catch ... | |
{ | |
Application->Initialize(); // Applicatoin 은 singleton instance 이다.. | |
// extern PACKAGE TApplication* Application; | |
SetApplicationMainFormOnTaskBar(Application, true); | |
// Forms.SetApplicationMainFormOnTaskBar | |
Application->CreateForm(__classid(TForm1), &Form1); // 폼 만드시고.. | |
Application->Run(); // application 실행하슈... | |
} | |
catch (Exception &exception) | |
{ | |
Application->ShowException(&exception); // 왠만하면 이 아래로 안 오시길 기원함댜... | |
} | |
catch (...) | |
{ | |
try | |
{ | |
throw Exception(""); | |
} | |
catch (Exception &exception) | |
{ | |
Application->ShowException(&exception); | |
} | |
} | |
return 0; | |
} |
728x90
반응형
'C C++' 카테고리의 다른 글
Windows API에서 2의 거듭제곱 여부를 확인 (0) | 2007.08.13 |
---|---|
basic_string의 replace 함수로 문자열 치환하기 (0) | 2007.08.13 |
Visual C++ 6.0 재배포 패키지(vc6redist)와 호환성 이슈 (0) | 2007.07.31 |
[VA.C] example for variable number of arguments (0) | 2007.06.18 |
C++ 오버로딩 (Overloading on the C++) (0) | 2007.06.14 |