⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dk3200_rs232_iap_demo.cpp

📁 尽量朝“单片”方向设计硬件系统。系统器件越多
💻 CPP
字号:
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("RS232_Demo.cpp", mainForm);
USEFORM("test_form.cpp", testForm);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
   CreateMutex(NULL,1,"RS232_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->CreateForm(__classid(TtestForm), &testForm);
      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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -