ARM嵌入式系统软件开发实例(一)
源代码在线查看: unit1.h
//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include
#include
#include
#include
#include
#include
#include
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
TNMUDP *NMUDP1;
TEdit *Edit1;
TEdit *Edit3;
TEdit *Edit2;
TEdit *Edit4;
TEdit *Edit5;
TGroupBox *GroupBox1;
TButton *btnSendMsg;
TButton *btnSendStr;
TButton *btnLoad;
TGroupBox *GroupBox2;
TOpenDialog *OpenDialog1;
TLabel *Label1;
TLabel *Label2;
TLabel *Label3;
TLabel *Label4;
TStatusBar *StatusBar1;
TMemo *RichEdit1;
TLabel *Label5;
TButton *Button1;
void __fastcall btnSendMsgClick(TObject *Sender);
void __fastcall NMUDP1DataReceived(TComponent *Sender,
int NumberBytes, AnsiString FromIP, int Port);
void __fastcall btnLoadClick(TObject *Sender);
void __fastcall btnSendStrClick(TObject *Sender);
void __fastcall NMUDP1DataSend(TObject *Sender);
void __fastcall NMUDP1Status(TComponent *Sender,
AnsiString status);
void __fastcall NMUDP1InvalidHost(bool &handled);
void __fastcall NMUDP1StreamInvalid(bool &handled,
TStream *Stream);
void __fastcall NMUDP1BufferInvalid(bool &handled,
_ARRAYOF char* Buff, const int Buff_Size, int &length);
void __fastcall Button1Click(TObject *Sender);
private: // User declarations
public: // User declarations
__fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif