|
|
|
|
|
|
|
为了在你自己的应用程式中产生条码,你需要Barcodesoft的字体以及cruflbcs.dll。
有些老旧的 Windows 程式无法调用 COM。但是这些程式仍然可以调用动态链接库(cruflBCS.dll)。
如果你下载并且安装了 Barcodesoft 的使用软体, 你就会在以下文件夹中发现 crUFLBCS.dll
C:\Program Files (x86)\Common Files\Barcodesoft\FontUtil\ .
如果你在电脑中无法找到 cruflbcs.dll, 请从以下链接下载 Barcode DLL .
以下代码片断显示了如何调用动态链接库来产生条形码。
对返回的字符串 'szReturn'使用条形码之后, 你就可以得到条形码.
你可以使用或者修改如下代码片断来调用 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);
|
|
|
|
|
|