Please enable JavaScript to view this site.

A-Shell Development History

xcall USPSBS, trackstr, routestr, barstr, status

(Windows) This subroutine creates an encoded bar string for the US Post Office intelligent bar codes.

Parameters

trackstr  (string, 21)  [in]

tracking string

routestr  (string, 12)  [in]

route string

barstr  (string, 66)  [out]

returned encoded bar string

status  (F)  [out]

returned status code per the following table:

Status

Meaning

0

Sucess

-1

Parameter error

-2

Unable to load USPS4CB.DLL

-3

Unable to locate the USPS4CB() function

-99

Not supported on current platform

>0

invalid trackstr and/or routestr

 

The file USPS4CB.DLL is available from the US Postal Service's Intelligent Mail Barcode Resource Download Site and must be saved somewhere in the path or in the A-Shell bin directory.

See the publications on the above web site for details on creating the trackstr and routestr values.

The returned barstr is a character format equivalent of the graphic bar code, designed to be easy to convert to the graphic format. See the documents on the above web page for specifications.

See the EXLIB directory [908,52] for sample and test programs.