TBarCode Library 11  TBarCode Library 11
ERRCODE _stdcall BCGetPostscriptMacrosA ( LPSTR  pszMacros,
INT *  pnSize 
)

Returns Postscript macros of the Postscript code as a zero-terminated string.

This function is useful when embedding multiple barcodes in a single Postscript document using BCPostscriptToMemoryExt().
The Postscript codes returned by BCPostscriptToMemory() or BCPostscriptToMemoryExt() internally use a series of Postscript macros. These macros are defined at the begin of each barcode. When having several barcodes in a single Postscript document the macros need to be defined only once. To achieve this the Postscript code that defines the macros can be retrieved with this function. The barcodes can then be generated using BCPostscriptToMemoryExt() and setting bIncludeMacros to false. param[in,out] pszMacros Pointer to a memory block. param[in,out] pnSize Size of memory block as allocated. Contains required size after function call.

Return values:
ERRCODEErrOk (0) in case of success. Non-zero if error occurred.