BSS 1DCode Generator SDK (ver 2.2)
Description
SDK BSS 1DCode Generator Win32 is a robust solution for generating 1D barcodes. This SDK is Windows based. The document includes the description of software interface, the description of a package contents and instructions on how to build a sample project and examples of functions’ calls.
Structure of delivery
SDK BSS 1DCode Generator Win32 is an archive which includes several components:
Components list
Description of Subdirectories
Supported barcodes
Activation
Trial version of the SDK can be used within 30 days on a standalone PC. During the first use (after 30 days trial period) of dynamic library from the delivery (for example when use a sample application) there will be a message with request to activate the copy of SDK. You will have to enter a License Key in the respective field. In order to receive it you will need to purchase the respective Commercial License at www.BarcodeSoftwareSolutions.com and send a System-ID and the version of used SDK to support@barcodesoftwaresolutions.com. Within 24 hours we will send the Commercial License Key.
Sample project
In order to compile a sample project you need to open .sln file which can be found in the “make” subdirectory. Select needed configuration to build (Release, Debug). Binary files will be created in the “bin” directory.
Projects’ configurations
SDK BSS 1DCode Generator Win32 includes sample projects for Microsoft Visual Studio 8.0 IDE. There are two configurations in the delivery:
Program interface
The structure of SDK BSS 1DCode Generator Win32 program interface is focused to provide developer with the easiest way to use SDK. There are only two plane C functions exported from dynamic library.
Functions

Function BSS_Generate1DCode() generate a 1D barcode.
BSS_DLL int BSS_Generate1DCode
(
    const char* pchData,
    int nDataLength,
    int nCodeType,
    int nModSize,
    int nImgRowMult,
    void** ppImgData,
    int* pnImgWidth,
    int* pnImgHeight,
    int* pnImgRowDist
);
Return codes
Function BSS_Release1DCodeResults() releases resources which were allocated for barcode image.
BSS_DLL int BSS_Release1DCodeImage
(
    void* pImgData,
    int nImgWidth,
    int nImgHeight,
    int nImgRowDist
);
Return codes
Example
int iHeight = 0;
int iWidth = 0;
int iRowStride = 0;
void* pvImage = NULL;

int nRes = BSS_Generate1DCode( ..., &pvImage, &iHeight, &iWidth, &iRowStride );

// TODO

// Releasing resources
BSS_Release1DCodeImage( pvImage, iHeight, iWidth, iRowStride );