|
|
|
|
|
|
|
In order to create barcode in your own application,
you need Barcodesoft true type fonts and cruflbcs.dll .
Some legacy Windows applications are unable to call COM objects.
However, these applications can still call Dynamic Link Library (cruflBCS.dll)
If you download and install the demo of Barcodesoft product, you will find crUFLBCS.dll
at C:\Program Files (x86)\Common Files\Barcodesoft\FontUtil\ folder.
If you don't find cruflbcs.dll on your computer, please download it from Barcode DLL .
The following code snippet shows how to call a Dynamic Link Library function to create barcode.
Apply an appropriate font typeface to 'szReturn', and you get barcode generated.
You can use the following code snippet to call dynamic link library (DLL) cruflBCS.dll
|
typedef int (*LPFNDLLFUNC)(char*, char*);
char modulePath[] = "cruflbcs.dll";
HINSTANCE m_hLibInstance = LoadLibrary( modulePath );
if (m_hLibInstance != NULL)
{
lpfnDllFunc = (LPFNDLLFUNC)GetProcAddress(m_hLibInstance, "BCSPDF417Encode");
if (!lpfnDllFunc)
FreeLibrary(m_hLibInstance);
else
nReturn = lpfnDllFunc(pszInpara, szReturn);
}
FreeLibrary(m_hLibInstance);
|
Barcode Symbology |
Barcode Functions |
Parameters |
Barcode Font |
Code39 barcode |
BCSCode39 |
char* strToEncode, char& strOutput |
Code39mHr |
|
BCSCode39Check |
same as above |
Code39mHr |
|
BCSUSSCode39 |
same as above |
Code39mHr |
|
BCSCode39Ext |
same as above |
Code39mHr |
Code128 barcode |
BCSCode128A |
char* strToEncode, char& strOutput |
Code128aMHr |
|
BCSCode128B |
same as above |
Code128aMHr |
|
BCSCode128C |
same as above |
Code128aMHr |
|
BCSUCCEAN128 |
same as above |
Code128aMHr |
UPC-A EAN13 barcode |
BCSUPCA |
char* strToEncode, char& strOutput |
UpcEanM |
|
BCSUPCE |
same as above |
UpcEanM |
|
BCSEAN13 |
same as above |
UpcEanM |
|
BCSEAN8 |
same as above |
UpcEanM |
|
BCSBookland |
same as above |
UpcEanM |
Intelligent Mail Barcode |
BCSONECODE |
char* strToEncode, char& strOutput |
BcsIM |
Postnet and Planet barcode |
BCSPOSTNET |
same as above |
Postnet |
Royal Mail Barcode |
BCSROYALMAIL |
same as above |
bcsRM4SCC |
Interleaved 2of5 Barcode |
BCSI25 |
char* strToEncode, char& strOutput |
I25mHr |
|
BCSI25Check |
same as above |
I25mHr |
Code 2of5 Barcode |
BCSCode25 |
char* strToEncode, char& strOutput |
Code25mHr |
|
BCSCode25Check |
same as above |
Code25mHr |
Telepen Barcode |
BCSTelepen |
char* strToEncode, char& strOutput |
TelepenMHr |
|
BCSTelepenNumeric |
same as above |
TelepenMHr |
Code93 Barcode |
BCSCode93 |
char* strToEncode, char& strOutput |
Code93mHr |
Code11 Barcode |
BCSCode11 |
char* strToEncode, char& strOutput |
Code11mHr |
Codabar Barcode |
BCSCodabar |
char* strToEncode, char& strOutput |
CodabarmHr |
MSI Plessey Barcode |
BCSMSI |
char* strToEncode, char& strOutput |
MSImHr |
PDF417 barcode |
BCSPDF417 |
char* strToEncode, char& strOutput |
BcsPDF417 |
|
BCSPDF417Option |
char *pszToEncode, LONG nMaxRows, LONG nFixedColumns, LONG nSecurity, LONG nCompactionMode, BOOL bTruncated, char& pszOutput |
BcsPDF417 |
MicroPDF417 barcode |
BCSMicroPDF417Encode |
char* strToEncode, char& strOutput |
BcsPDF417 |
GS1-Databar Barcode |
BCSDatabarEncode |
same as above |
BcsDatabarM |
|
BCSDatabarExpEncode |
same as above |
BcsDatabarM |
|
BCSDatabarExpStkEncode |
same as above |
BcsDatabarM |
|
BCSDatabarLtdEncode |
same as above |
BcsDatabarM |
|
BCSDatabarStackEncode |
same as above |
BcsDatabarM |
|
BCSDatabarStkOmniEncode |
same as above |
BcsDatabarM |
MaxiCode Barcode |
BCSMaxicodeEncode |
char* strToEncode, char& strOutput |
BcsMaxicode |
Datamatrix barcode |
BCSDataMatrixEncode |
char* strToEncode, char& strOutput |
BcsDataMatrix |
|
BCSDataMatrixOption |
char *pszToEncode, LONG Format, char& pszOutput |
BcsDataMatrix |
QRCode barcode |
BCSQRCodeEncode |
char* strToEncode, char& strOutput |
BcsQrcode |
|
BCSQRCodeOption |
char *pszToEncode, LONG ErrorLevel, char& pszOutput |
BcsQrcode |
Aztec bar code |
BCSAztecEncode |
char* strToEncode, char& strOutput |
BcsAztec |
|
BCSAztecOption |
char *pszToEncode, LONG Format, LONG ErrorLevel, char& pszOutput |
BcsAztec |
Code16k barcode |
BCSCode16KEncode |
char* strToEncode, char& strOutput |
Code16kMhr |
|
|
The Dynamic Link Library (DLL) cruflBCS.dll exports the following functions:
Code39:
BCSCode39(char* strToEncode, char& strOutput);
BCSCode39Check(char* strToEncode, char& strOutput);
BCSUSSCode39(char* strToEncode, char& strOutput);
BCSCode39Ext(char* strToEncode, char& strOutput);
Code128:
BCSCode128A(char* strToEncode, char& strOutput);
BCSCode128B(char* strToEncode, char& strOutput);
BCSCode128C(char* strToEncode, char& strOutput);
BCSUSS128(char* strToEncode, char& strOutput);
BCSUCCEAN128(char* strToEncode, char& strOutput);
UPC EAN:
BCSUPCA(char* strToEncode, char& strOutput);
BCSUPCE(char* strToEncode, char& strOutput);
BCSEAN13(char* strToEncode, char& strOutput);
BCSEAN8(char* strToEncode, char& strOutput);
BCSBookland(char* strToEncode, char& strOutput);
Data Matrix:
BCSDataMatrixEncode(char* strToEncode, char& strOutput);
BCSDataMatrixOption(char *pszToEncode, LONG Format, char& pszOutput);
PDF417:
BCSPDF417Encode(char* strToEncode, char& strOutput);
BCSPDF417Option(char *pszToEncode, LONG nMaxRows, LONG nFixedColumns, LONG nSecurity, LONG nCompactionMode, BOOL bTruncated, char& pszOutput);
BCSMicroPDF417Encode(char* strToEncode, char& strOutput);
QR Code:
BCSQRCodeEncode(char* strToEncode, char& strOutput);
BCSQRCodeOption(char *pszToEncode, long ErrorLevel, char& pszOutput);
Aztec:
BCSAztecEncode(char* strToEncode, char& strOutput);
BCSAztecOption(char *pszToEncode, LONG Format, LONG ErrorLevel, char& pszOutput);
Code16K:
BCSCode16KEncode(char* strToEncode, char& strOutput);
Interleaved 2 of 5:
BCSI25(char* strToEncode, char& strOutput);
BCSI25Check(char* strToEncode, char& strOutput);
Intelligent Mail barcode and Postnet:
BCSONECODE(char* strToEncode, char& strOutput);
BCSROYALMAIL(char* strToEncode, char& strOutput);
BCSPOSTNET(char* strToEncode, char& strOutput);
Code25:
BCSCode25(char* strToEncode, char& strOutput);
BCSCode25Check(char* strToEncode, char& strOutput);
Code11:
BCSCode11(char* strToEncode, char& strOutput);
Code93:
BCSCode93(char* strToEncode, char& strOutput);
MSI/Plessey:
BCSMSI(char* strToEncode, char& strOutput);
Codabar:
BCSCodabar(char* strToEncode, char& strOutput);
Telepen:
BCSTelepen(char* strToEncode, char& strOutput);
BCSTelepenNumeric(char* strToEncode, char& strOutput);
MaxiCode:
BCSMaxicode(char* strToEncode, char& strOutput);
GS1-Databar:
BCSDatabar14(char* strToEncode, char& strOutput);
BCSDatabarExpEncode(char* strToEncode, char& strOutput);
BCSDatabarExpStkEncode(char* strToEncode, char& strOutput);
BCSDatabarLtdEncode(char* strToEncode, char& strOutput);
BCSDatabarStackEncode(char* strToEncode, char& strOutput);
BCSDatabarStkOmniEncode(char* strToEncode, char& strOutput);
|
|
|
|
|
|