
Title
Rev.
Page
HP-283 Technical Manual
Ver1.01
P.76
7-3-1) OCX function (Functions)
1) long HwaUSB1.Open(LPCTSTR SelPrinter);
Please open the port USB by the printer model HP-283, or the printer model HP-083.
Parameters:
SelPrinter : Printer Model Name
Return :
Open normal : 0
Open error : -3( minus)
2) void HwaUSB1.Close(void);
Please close the port USB by the printer model.
Parameters:
None
Return :
None
3) long HwaUSB1.PrintStr(LPCTSTR data);
It prints the character line.
Parameters:
data : String datas
Return :
Print normal : 1
Print error : 0
Notice
: To prevent the loss of data for the print timeout,
Please use the function „RealRead‟ to check the status,and go to the next step, when it‟s normal.
4) long HwaUSB1.PrintCmd(unsigned char data);
It prints the data one (1) byte.
Parameters:
data : one(1) byte data (0~255)
Return :
Print normal : 1
Print error : 0
5) long HwaUSB1.NewRealRead(void);
It reads the printer status as data one (1) bye by the port USB.
Parameters:
None
Return :
Read normal : Printer status value.
Read error : -1( minus )
Notice
Please do not use any function we don
‟t provide, due to the debug usage.
Notice
Please ask the sample program for more details.