Project1.cpp
上传用户:lhxd_sz
上传日期:2014-10-02
资源大小:38814k
文件大小:1k
源码类别:

VC书籍

开发平台:

C++ Builder

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. USERES("Project1.res");
  5. USEFORM("Unit1.cpp", Form1);
  6. USEFORM("Unit2.cpp", Form2);
  7. USEFORM("Unit3.cpp", Form3);
  8. //---------------------------------------------------------------------------
  9. WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  10. {
  11.         try
  12.         {
  13.                  Application->Initialize();
  14.                  Application->CreateForm(__classid(TForm1), &Form1);
  15.                  Application->CreateForm(__classid(TForm2), &Form2);
  16.                  Application->CreateForm(__classid(TForm3), &Form3);
  17.                  Application->Run();
  18.         }
  19.         catch (Exception &exception)
  20.         {
  21.                  Application->ShowException(&exception);
  22.         }
  23.         return 0;
  24. }
  25. //---------------------------------------------------------------------------