usb_dk3200_demo.cpp

来自「DK3200 USB DEMO FOR PC」· C++ 代码 · 共 39 行

CPP
39
字号
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("USB_Demo.cpp", mainForm);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
   CreateMutex(NULL,1,"USB_DK3200_Demo");
   if(GetLastError()){
      if(IDNO==Application->MessageBox("The program is already running.\nDo you want to run another instance of the program ?","Duplicate instance",MB_YESNO))
      return 1;
   }
   try
   {
      Application->Initialize();
      Application->CreateForm(__classid(TmainForm), &mainForm);
      Application->Run();
   }
   catch (Exception &exception)
   {
      Application->ShowException(&exception);
   }
   catch (...)
   {
      try
      {
         throw Exception("");
      }
      catch (Exception &exception)
      {
         Application->ShowException(&exception);
      }
   }
   return 0;
}
//---------------------------------------------------------------------------

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?