12.07.2015 Views

Bar Code DLLs Bar Code DLLs

Bar Code DLLs Bar Code DLLs

Bar Code DLLs Bar Code DLLs

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Sample 16 bit C/C++ DLL Function Declaration for Aztec and Data Matrix <strong>DLLs</strong>extern "C"{int FAR PASCAL TALAZTECint FAR PASCAL TALDMX(TALMatrix<strong>Code</strong> * barcode, METAFILEPICT * metapict);(TALMatrix<strong>Code</strong> * barcode, METAFILEPICT * metapict);TALAZTEC TALAZTEC.DLL Aztec <strong>Code</strong>TALDMX TALDM.DLL Data Matrix};16 Bit C/C++ TALMatrix<strong>Code</strong> Type StructureThe following is a 16 Bit C/C++ declaration for the TALMatrix<strong>Code</strong> data type with commentsindicating the purpose of each individual data member.typedef struct tag TALMatrix<strong>Code</strong>{int messageLength; // Length of message to be encodedchar messageBuffer[3832]; // Message bufferint commentLength; // Length of commentchar commentBuffer[100]; // Comment bufferint moduleSize; // Narrow <strong>Bar</strong> Width in units of .01 mmint barWidthReduction; // Percent of narrow<strong>Bar</strong>Widthint ECCValue // ECC value. See notes for the different symbologiesint DataFormat // Data Format for Data Matrix ECC 000 - ECC 140COLORREF fgColor;// Foreground ColorCOLORREF bgColor;// Background Colorchar fontName[32]; // Font name for human readable textint fontSize; // Font size in pointsCOLORREF textColor;// Text color - RGB color valueint orientation; // Rotation 0 - 3 for 0, 90 , 180, 270 degreeslong preferences; // Bit values as described belowint horizontalDPI; // Printer DPI values used when AdjustToPrinterDPIint verticleDPI; // flag is set in Preferences (see notes below)int outputOption; // 0=Clipboard, 1=File, 2=MetaFilePict, 3=hDCchar outputFilename[68]; // ASCIIZ filename when saving to diskHDC outputDC; // Output device context when outputting to hDCfloat XPosInInches; // X page position (when outputting to hDC)float YPosInInches; // Y page position (when outputting to hDC)long reserved; // Reserved for future use}TALMatrix<strong>Code</strong>;64

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!