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

📄 comm.~cpp

📁 C++BUILDER 6.0 串口控件 簡單化的方式來控制RS232 設備
💻 ~CPP
字号:
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "Comm.h"
#pragma package(smart_init)
//---------------------------------------------------------------------------
// ValidCtrCheck is used to assure that the components created do not have
// any pure virtual functions.
//

static inline void ValidCtrCheck(TComm *)
{
        new TComm(NULL);
}
//---------------------------------------------------------------------------
__fastcall TComm::TComm(TComponent* Owner)
        : TComponent(Owner)
{

     CommTimer= new TTimer(this);
     CommTimer->Enabled=false;
     CommTimer->Interval =10;
     CommTimer->OnTimer =ProcTimer;
     hComm = 0;        //硄癟梆Handle

⌨️ 快捷键说明

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