Integration of ConnectCode DLL
ConnectCode Barcode Font Pack allows users to integrate barcode fonts into their applications through a native DLL (Dynamic Link Library). Through the ConnectCode DLL, users will able able to to add barcodes into their applications very easily.
This DLL is can be freely used and distributed with users' applications as long as it is being used with any one of the registered barcode font packs. Redistribution of ConnectCode's fonts will, however, require an Enterprise, Distribution or Unlimited Distribution License.
Five samples are provided to demonstrate the use of the DLL in various languages. They show a dialog that that takes in an input string and converts it into a string that can be used with the barcode fonts. They also choose the corresponding font name for the encoded string automatically and display a sample of the barcode.
ConnectCode DLL is so versatile it can even be used with projects written in the .NET 3 Framework with Windows Presentation Foundation.
Project | Framework | Requirement |
Visaul Basic .NET | .Net 2.0 Framework | Requires VS 2005 or later |
VC# .NET | .Net 2.0 Framework | Requires VS 2005 or later |
Visual Basic .NET WPF | .Net 3.0 Framework | Requires VS 2005 or later (with .NET 3 Framework SDK installed) |
.Net 3.0 Framework | Requires VS 2005 or later (with .NET 3 Framework SDK installed) | |
Visual C++ (MFC) | Win32 Native | Requires VS 2003 or later |
The functions exported by the DLL are described below. The column on the right gives the names of the barcode fonts that need to be chosen after encodation. To use the DLL, you will need to use their respective DLL Import statements or header file.
Function |
Barcode Font Name |
Encode_Code128Auto - Encode the input string into a text string that can be used with ConnectCode Code128Auto Barcode Font . |
CCode128_Sx |
Encode_Code39 - Encode the input string into a text string that can be used with ConnectCode Code39 Barcode Font. Setting the checkdigit parameter to 1 will add a check digit to the barcode string. |
CCode39_Sx |
Encode_POSTNET - Encode the input string into a text string that can be used with ConnectCode Postnet Barcode Font. | CCodePostnet |
Encode_Code93 - Encode the input string into a text string that can be used with ConnectCode Code93 Font. Setting the checkdigit parameter to 1 will add a check digit to the barcode string. | CCode93_Sx |
Encode_Codabar - Encode the input string into a text string that can be used with ConnectCode Codabar Barcode Font. | CCodeCodabar_Sx |
Encode_Code39Ascii - Encode the input string into a text string that can be used with ConnectCode Code39Ascii Barcode Font. Setting the checkdigit parameter to 1 will add a check digit to the barcode string. | CCode39_Sx |
Encode_I2of5 - Encode the input string into a text string that can be used with ConnectCode I2of5 Barcode Font. Setting the checkdigit parameter to 1 will add a check digit to the barcode string. | CCodeI2of5_Sx |
Encode_ITF14 - Encode the input string into a text string that can be used with ConnectCode ITF Barcode Font. Setting the checkdigit parameter to 1 will add a check digit to the barcode string. | CCodeITF_Sx |
Encode_Industrial2of5 - Encode the input string into a text string that can be used with ConnectCode Industrial 2 of 5 Barcode Font. Setting the checkdigit parameter to 1 will add a check digit to the barcode string. | CCodeIND2of5_Sx |
Encode_ModifiedPlessy - Encode the input string into a text string that can be used with ConnectCode ModifiedPlessy Barcode Font. Setting the checkdigit parameter to 1 will add a check digit to the barcode string. | CCodeMSI_Sx |
Encode_EAN13 - Encode the input string into a text string that can be used with ConnectCode EAN13 Barcode Font. Setting the humantext parameter to 1 indicates the barcode is to be encoded with human readable text. |
CCodeUPCEAN_Sx
|
RetrieveOptionalString_EAN13 - Retrieve a formatted text string for ISBN, ISSN or ISBN13. This human readable string is usually placed on top of an ISBN, ISSN or ISBN13 barcode. The parameter strtype can take the values 0 - ISSN, 1 - ISBN, 2 - ISBN3. | |
Encode_UPCA - Encode the input string into a text string that can be used with ConnectCode UPCA Barcode Font. Setting the humantext parameter to 1 indicates the barcode is to be encoded with human readable text. |
CCodeUPCEAN_Sx
|
Encode_EAN8 - Encode the input string into a text string that can be used with ConnectCode EAN8 Barcode Font. Setting the humantext parameter to 1 indicates the barcode is to be encoded with human readable text. |
CCodeUPCEAN_Sx
|
Encode_UCCEAN - Encode the input string into a text string that can be used with ConnectCode UCCEAN Barcode Font. The input format are of the form (10)1235. | CCode128_Sx |
Encode_Code128A - Encode the input string into a text string that can be used with ConnectCode Code128A Barcode Font. | CCode128_Sx |
Encode_Code128B - Encode the input string into a text string that can be used with ConnectCode Code128B Barcode Font. | CCode128_Sx |
Encode_Code128C - Encode the input string into a text string that can be used with ConnectCode Code128C Barcode Font. | CCode128_Sx |
Encode_UPCE - Encode the input string into a text string that can be used with ConnectCode UPCE Barcode Font. Setting the humantext parameter to 1 indicates the barcode is to be encoded with human readable text. |
CCodeUPCEAN_Sx
|
Encode_EXT2 - Encode the input string into a text string that can be used with ConnectCode EXT2 Barcode Font. |
CCodeUPCEAN_Sx
|
Encode_EXT5 - Encode the input string into a text string that can be used with ConnectCode EXT5 Barcode Font. |
CCodeUPCEAN_Sx
|
Note
-
The x in the font names of the last column refers to a number usually in the range 1 to 7. The default value for x is 3.
- If you are using the trial copy of ConnectCode Barcode fonts, the font name that is chosen is suffixed with the word _Trial. As a consequence, the barcode that is displayed will have horizontal lines for some digits.