General Function Calls

These function calls are required to produce a barcode with standard settings. More...
ERRCODE BCInitLibraryA (LPCSTR szPath)
 Initializes TBarCode Library (UNIX and Windows CE only).
ERRCODE BCInitLibraryW (LPCWSTR szPath)
 Initializes TBarCode Library (UNIX and Windows CE only).
ERRCODE BCLicenseMeA (LPCSTR lpszLicensee, e_licKind eKindOfLicense, DWORD dwNoOfLicenses, LPCSTR lpszKey, e_licProduct eProductID)
 License TBarCode.
ERRCODE BCLicenseMeW (LPCWSTR lpszLicensee, e_licKind eKindOfLicense, DWORD dwNoOfLicenses, LPCWSTR lpszKey, e_licProduct eProductID)
 License TBarCode.

Functions

BOOL BCAttachInstance (HINSTANCE hInstance)
 Attach library to given instance (Windows static library only).
BOOL BCAttach ()
 Initializes TBarCode for further use (Windows static library only).
BOOL BCDetach ()
 Detach library from process (Windows static library only).
ERRCODE BCDeInitLibrary ()
 De-initializes TBarCode Library (UNIX and Windows CE only).
ERRCODE BCAlloc (t_BarCode **ppBarCode)
 Allocates and initializes barcode structure.
ERRCODE BCFree (t_BarCode *pBarCode)
 Frees barcode structure.
ERRCODE BCCreate (t_BarCode *pBarCode)
 Creates the internal barcode representation.

Detailed Description

These function calls are required to produce a barcode with standard settings.

The barcode can then be drawn on a device context using BCDraw() or written to file using BCPostscriptToFile() (or similar). Some of these functions are only necessary for applications which are using a static library of TBarCode.

Note:
A static library is available on request only. Please contact support@tec-it.com
The following examples shows how you will use these functions in your code.
 /* License TBarCode */
 BCLicenseMe("LicenseeName", eLicKindDeveloper, 1, "LicenseKey", eLicProd2D);

 /* Allocate memory and retrieve barcode handle (pointer) */
 t_BarCode* pBC;
 BCAlloc(&pBC);
 
 /* Set barcode symbology, data and other properties. */
 ...

 /* Create barcode pattern (bars, spaces) */
 BCCreate(pBC);

 /* Call functions to draw or save barcodes */
 ...

 /* Release memory / free barcode structure */
 BCFree(pBC);

© 2008 All rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on Tue May 5 15:50:32 2009 for TEC-IT TBarCode Library 9.2 with doxygen 1.5.3