Inesoft
PrintCE SDK EVC++ |
Connect to printer
int ASCII_Connect(
int port,
LPTSTR port_param
);Parameters
port
port number, see defines into asciice.h
port_param
parameter string,- if port is ASCII_FILE then port_param defines file path,
- if port is ASCII_NET then port_param defines network path,- if port is ASCII_BTBROAD then port_param is following string: "bt_adr;service_name;scn" (for example: "0x0ddfec02cd98;myservice;5"), where:
bt_adr - address of Bluetooth device. It must be represented as a hex number which will be converted into 6 bytes array. The length of bt_adr must be equal to 14 symbols. Otherwise function will fail.
service_name- service which is used for printing (see WIDCOMM SDK documentation dor details)
scn- service channel number (see WIDCOMM SDK documentation dor details)
- if port is ASCII_BTMSOFT then port_param is address of Bluetooth device. It must be represented as a hex number which will be converted into 6 bytes array. The length of string must be equal to 14 symbols. Otherwise function will fail. For example: "0x0ddfec02cd98"
for all other ports port_param must be set to NULL or empty string
Return values
1 - if connection established
0 - in other caseSee Also
ASCII_Disconnect
© 2009 Inesoft. All rights reserved.