first commit (2002-04-24)
This commit is contained in:
59
Test/test.cpp
Normal file
59
Test/test.cpp
Normal file
@ -0,0 +1,59 @@
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
#include <vcl.h>
|
||||
#pragma hdrstop
|
||||
|
||||
#include "test.h"
|
||||
//---------------------------------------------------------------------------
|
||||
#pragma package(smart_init)
|
||||
#pragma link "LM2000"
|
||||
#pragma resource "*.dfm"
|
||||
TForm1 *Form1;
|
||||
//---------------------------------------------------------------------------
|
||||
__fastcall TForm1::TForm1(TComponent* Owner)
|
||||
: TForm(Owner)
|
||||
{
|
||||
Lm2000->AbrePuerto("COM1");
|
||||
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
bool __fastcall TForm1::Lm2000BuscaTarjeta(int ID, int FGA, int TPA,
|
||||
int CDA, int *TPR, int *PNR, char *message)
|
||||
{
|
||||
return CheckBox1->Checked;
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
void __fastcall TForm1::FormDestroy(TObject *Sender)
|
||||
{
|
||||
Lm2000->CierraPuerto();
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
void __fastcall TForm1::Button1Click(TObject *Sender)
|
||||
{
|
||||
Lm2000->PassageOpening( 1, 1 );
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
void __fastcall TForm1::Button2Click(TObject *Sender)
|
||||
{
|
||||
Lm2000->PassageOpening( 1, 2 );
|
||||
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
void __fastcall TForm1::Button3Click(TObject *Sender)
|
||||
{
|
||||
Lm2000->PassageOpening( 1, 3 );
|
||||
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
void __fastcall TForm1::Button4Click(TObject *Sender)
|
||||
{
|
||||
Lm2000->PassageOpening( 1, 4 );
|
||||
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
bool __fastcall TForm1::Lm2000VerboseMessage(AnsiString msg)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
Reference in New Issue
Block a user