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

📄 unit1.h

📁 一个串口通信的源码
💻 H
字号:
//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Buttons.hpp>
#include <Dialogs.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
    TLabel *Label_0;
    TButton *Exit;
    TStaticText *StaticText0;
    TButton *CloseCom;
    TButton *OpenCom;
    TLabel *Label_Title;
    TLabel *Label_1;
    TLabel *Label0;
    TButton *Button2;
    TComboBox *ComboBox1;
    TStaticText *StaticText1;
    TOpenDialog *OpenDialog1;
    TTimer *Timer1;
    TStaticText *StaticText2;
    TStaticText *StaticText3;
    TButton *Button1;
    TSaveDialog *SaveDialog1;
    TStaticText *StaticText4;
    TComboBox *ComboBox2;
    TLabel *Label1;
    TLabel *Label2;
    TLabel *Label3;
    TLabel *Label4;
    TLabel *Label5;
    void __fastcall ExitClick(TObject *Sender);
    void __fastcall CloseComClick(TObject *Sender);
    void __fastcall OpenComClick(TObject *Sender);
    void __fastcall Button2Click(TObject *Sender);
    
    void __fastcall Timer1Timer(TObject *Sender);
    void __fastcall Button1Click(TObject *Sender);
private:	// User declarations
    void __fastcall CloseComEnabled();
    void __fastcall OpenComEnabled();
    int __fastcall Get_baud();
public:		// User declarations
    __fastcall TForm1(TComponent* Owner);
    int     port;
    FILE *fp;
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
 

⌨️ 快捷键说明

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