TBarCode Library 11  TBarCode Library 11
General Function Calls

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

Functions

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

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 suppo.nosp@m.rt@t.nosp@m.ec-it.nosp@m..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);
ERRCODE TECIT_STDCALL BCAlloc(t_BarCode **pBarCode)
Allocates and initializes barcode structure.
Definition: baseapi.cpp:188
struct tag_BarCode t_BarCode
Forward declaration of the internal used barcode structure.
Definition: tbarcode.h:154
#define BCLicenseMe
Definition: tbarcode.h:262

© 2023 All rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on Wed Apr 10 2024 13:55:57 for TBarCode Library 11 with doxygen 1.9.1