📄 unit1.h
字号:
//---------------------------------------------------------------------------
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -