unit1.h
来自「C++Builder 串口编程的很好的控件包」· C头文件 代码 · 共 47 行
H
47 行
//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "YbCommDevice.h"
#include "yb_base.h"
#include <Buttons.hpp>
#include <Dialogs.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
TYbCommDevice *YbCommDevice1;
TMemo *Memo1;
TBitBtn *BitBtn1;
TOpenDialog *OpenDialog1;
TProgressBar *ProgressBar1;
TTimer *Timer1;
void __fastcall BitBtn1Click(TObject *Sender);
void __fastcall YbCommDevice1Package(TObject *Sender, int NotifyType);
void __fastcall Timer1Timer(TObject *Sender);
private: // User declarations
TRelPath dlpath;
TBinFile sf,df;
bool bUploading;
unsigned char PkgID;
long nBytesToReceive, iReceivingCounter;
__int64 iReceiveFileTime;
void __fastcall ShowInfo(AnsiString s);
int __fastcall UploadReq(AnsiString fname);
int __fastcall UploadFileData(void);
int __fastcall WaitforAnswer(unsigned char Cmd, unsigned char id);
public: // User declarations
__fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?