Appendix B - Infinite Peripherals PP-50 Developer's Manual

Pda printer
Table of Contents

Advertisement

. .
. .
. .
. .

Appendix B

.
External Function Example Code:
The example code uses the C/C++ language to register the serial number with the SDK.
error = DPSDKLib_OpenLibrary(& DPSDK_Ref,&Context);
FatalErr(error != errNone, "Can't load DPSDK");
if(!DPSDK_REGISTER(DPSDK_Ref,"REGISTRATION NUMBER GOES
FrmCustomAlert (InfoAlert,"cannot register !!!", 0,0);
if(DPSDK_InitPrinter(DPSDK_Ref))
{
if(DPSDK_ExtOpenConnection(DPSDK_Ref, 9600, 8, 1, 0)
{
}
}
else
{
FrmCustomAlert (InfoAlert,"cannot initialize printer !!!", 0,0);
error = DPSDKLib_CloseLibrary(DPSDK_Ref,Context);
}
Infinite Peripherals, Inc.
www.ipcprint.com
Version 2.00
//send.... receive...
DPSDK_ExtCloseConnection(DPSDK_Ref);
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
HERE!!!")
Page 33

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PP-50 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents