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

多显示器编程

开发平台:

C++ Builder

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. USERES("CommAPI.res");
  5. USEFORM("UnitMain.cpp", FormMain);
  6. USEUNIT("UnitComm.cpp");
  7. USEUNIT("ThreadComm.cpp");
  8. //---------------------------------------------------------------------------
  9. WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  10. {
  11.         try
  12.         {
  13.                  Application->Initialize();
  14.                  Application->Title = "串行通信收、发程序";
  15.          Application->CreateForm(__classid(TFormMain), &FormMain);
  16.          Application->Run();
  17.         }
  18.         catch (Exception &exception)
  19.         {
  20.                  Application->ShowException(&exception);
  21.         }
  22.         return 0;
  23. }
  24. //---------------------------------------------------------------------------