TBarCode Library 11  TBarCode Library 11
General Function Calls

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

Functions

BOOL _stdcall BCAttachInstance (HINSTANCE hInstance)
 Attach library to given instance (Windows static library only).
BOOL _stdcall BCAttach ()
 Initializes TBarCode for further use (Windows static library only).
BOOL _stdcall BCDetach ()
 Detach library from process (Windows static library only).
ERRCODE _stdcall BCDeInitLibrary ()
 De-initializes TBarCode Library (UNIX and Windows CE only).
ERRCODE _stdcall BCAlloc (t_BarCode **ppBarCode)
 Allocates and initializes barcode structure.
ERRCODE _stdcall BCClone (t_BarCode **ppBarCodeDest, const t_BarCode *pBarCodeSrc)
 Makes a clone of an existing bar code structure.
ERRCODE _stdcall BCFree (t_BarCode *pBarCode)
 Frees barcode structure.
ERRCODE _stdcall BCCreate (t_BarCode *pBarCode)
 Creates the internal barcode representation.
ERRCODE _stdcall BCInitLibraryA (LPCSTR szPath)
 Initializes TBarCode Library (UNIX and Windows CE only).
ERRCODE _stdcall BCInitLibraryW (LPCWSTR szPath)
 Initializes TBarCode Library (UNIX and Windows CE only).
ERRCODE _stdcall _BCInitLibraryT (LPCTSTR szPath)
 Initializes TBarCode Library (UNIX and Windows CE only).
ERRCODE _stdcall BCLicenseMeA (LPCSTR lpszLicensee, e_licKind eKindOfLicense, DWORD dwNoOfLicenses, LPCSTR lpszKey, e_licProduct eProductID)
 License TBarCode.
ERRCODE _stdcall BCLicenseMeW (LPCWSTR lpszLicensee, e_licKind eKindOfLicense, DWORD dwNoOfLicenses, LPCWSTR lpszKey, e_licProduct eProductID)
 License TBarCode.

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);