ThreadTest.cpp
上传用户:gyjjlc
上传日期:2013-03-29
资源大小:2124k
文件大小:1k
源码类别:

多显示器编程

开发平台:

C++ Builder

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