3. Methods
The functions disclosed in the provided module are declared in the ExportFunc.h file.
The development environment was based on C++.
3-1 PrinterOpen
In order to use the module, this function is enabled. For PDA types with different In/Out
ports, port settings for each are required. In general, two-way communication is possible
with just the strOutPortName setting.
long PrinterOpen(
LPCTSTR strOutPortName,
Long lTimeout
);
[Parameters]
* strOutPortName
[in] Unicode Data ending with null. The virtual Serial Port number and Baudrate of the
currently connected device is conveyed for printing. If strOutPortName is NULL,
strOutPortName sets to In/Out data processing.(Bluetooth & Serial ex : COM4:19200 or
BSP4:19200, WLAN ex : NETxxx.xxx.xxx.xxx:9100 or ETHxxx.xxx.xxx.xxx:9100)
* lTimeout
[in] Specifies the timeout, in milliseconds, used to calculate the total timeout period for
open operations.
[Return Values]
long lResult;
// serial or bluetooth
lResult = PrinterOpen(“COM4:19200”, 1000);
……
// WLAN
lResult = PrinterOpen(“ETHxxx.xxx.xxx.xxx:9100”, 1000);
……