|
|
|
|
|
|
|
Afin de créer des codes à barres dans votre propre application,
vous devez polices true type et Barcodesoft cruflbcs.dll.
Certaines applications héritées Windows sont incapables d'appeler des objets COM.
Toutefois, ces applications peuvent toujours appeler Dynamic Link Library (cruflBCS.dll)
Si vous téléchargez et installez la démo du produit Barcodesoft, vous trouverez crUFLBCS.dll
dans C:\Program Files \Common Files\Barcodesoft\FontUtil\ dossier.
Si vous ne trouvez pas cruflbcs.dll sur votre ordinateur, s'il vous plaît télécharger à partir de DLL code à barres .
L'extrait de code suivant montre comment appeler une fonction Dynamic Link Library pour créer de code à barres.
Appliquer une police de caractères appropriée pour 'szReturn ", et vous obtenez code-barres généré.
Vous pouvez utiliser le code suivant pour appeler 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);
|
|
|
|
|
|