In order to facilitate implementation of the NCTS system (Transit), the Tax Agency Department of Customs and Excise Duties provides a DLL known as Cb128B to generate the barcode of the accompanying document, without this meaning any commitment to maintain, support or generate new versions in the future.
The interface for using the DLL is the function PrintCode 128B with the HDC parameters (handle device context), int X (horizontal coordinate), int Y (vertical coordinate), int high, int factor, text;the prototype of the function for its implementation in language C can be viewed and copied in the link "Function prototype".
#define EXTERN __declspec( dllexport )
EXTERN int PASCAL PintarCode128B(HDC, int, int, int, int, char *);
#define BLANCO 1
#define NEGRO -1
You can also download a pdf file with the template of the accompanying document.