//--------------------------------Globals.h---------------------------------- #ifndef GlobalsH #define GlobalsH //--------------------------------------------------------------------------- #include <Classes.hpp> //--------------------------------------------------------------------------- AnsiString UserName; //--------------------------------------------------------------------------- #endif |
//-------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop //--------------------------------------------------------------------- USEFORM("TMainForm.cpp", MainForm); //--------------------------------------------------------------------- AnsiString UserName; //--------------------------------------------------------------------- WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { try { Application->Initialize(); Application->CreateForm(__classid(TMainForm), &MainForm); Application->Run(); } catch ... //这里省略了一部分 return 0; } //--------------------------------------------------------------------- |