comm.~cpp

来自「C++BUILDER 6.0 串口控件 簡單化的方式來控制RS232 設備」· ~CPP 代码 · 共 26 行

~CPP
26
字号
//---------------------------------------------------------------------------

#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 + =
减小字号Ctrl + -
显示快捷键?