Key in your email here
Font Products
 Barcode Fonts
  • Code 39 Barcode
  • Code 128 Barcode
  • UCCEAN Barcode
  • ITF14 Barcode
  • I2of5 Barcode
  • UPC/EAN Barcode
 Download ConnectCode
 Purchase ConnectCode
 MICR Fonts
  • MICR E13B
  • MICR CMC7
 Download MICR
 Purchase

Using the Fonts
  • With the Font Encoder
  • With Excel
  • With Access
  • With Word
  • With Crystal Reports
  • Application Integration
     • With C#
     • With Visual Basic
     • With WPF (C#)
     • With WPF (VB)
     • With Visual C++

Software Products
 Barcode Software Imager
 Download Imager
 Purchase


Barcode FAQ
 Barcode
  • Barcode Symbology
  • Barcode FAQ
  • Barcode Images
  • Barcode Font
 RFID
  • What is RFID?
 Thermal Printers
 Barcode Scanners
 OCR & OCR Fonts
 MICR & MICR Fonts

Barcode Resources
 Web Resources
 The Barcode CD Project
 Mobile Barcode Project



DLLImport Statements for VB .NET

Copy the following block of statements into your VB .NET project to integrate with the DLL. To use DLLImport statements in your project, you will need to import the System.Runtime.InteropServices namespace. 

Imports System.Runtime.InteropServices

The connectcodefont.dll file has to be placed in the same folder as the executable for it to load properly. An example can be found in the   VB .NET sample project.

 

<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_Code128Auto(ByVal instr As String, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_Code39(ByVal instr As String, ByVal checkdigit As Integer, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_POSTNET(ByVal instr As String, ByVal checkdigit As Integer, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_Code93(ByVal instr As String, ByVal checkdigit As Integer, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_Codabar(ByVal instr As String, ByVal checkdigit As Integer, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_Code39Ascii(ByVal instr As String, ByVal checkdigit As Integer, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_I2of5(ByVal instr As String, ByVal checkdigit As Integer, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_ITF14(ByVal instr As String, ByVal checkdigit As Integer, ByVal bearer As Integer, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_Industrial2of5(ByVal instr As String, ByVal checkdigit As Integer, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_ModifiedPlessy(ByVal instr As String, ByVal checkdigit As Integer, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_EAN13(ByVal instr As String, ByVal humantext As Integer, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function RetrieveOptionalString_EAN13(ByVal instr As String, ByVal humantext As Integer, ByVal strtype As Integer, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_UPCA(ByVal instr As String, ByVal humantext As Integer, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_EAN8(ByVal instr As String, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_UCCEAN(ByVal instr As String, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_Code128A(ByVal instr As String, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_Code128B(ByVal instr As String, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_Code128C(ByVal instr As String, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_UPCE(ByVal instr As String, ByVal humantext As Integer, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _
Public Shared Function Encode_EXT2(ByVal instr As String, ByVal outstr As System.Text.StringBuilder, ByVal outstrmax As Integer) As Integer

End Function
<DllImport("connectcodefont.dll")> _ Public Shared Function
Encode_EXT5(ByVal instr As String, ByVal outstr As System.Text.StringBuilder,
ByVal outstrmax As Integer) As Integer

End Function

Copyright (C) 2004-2005, BarcodeResource.com. All Rights Reserved.