非托管dll,把dll拷贝到foxtable安装目录下,然后在全局代码里声明对应的函数即可
<DllImport("AspriseOCR.dll", EntryPoint := "OCR", CallingConvention := CallingConvention.Cdecl)> _
Public Function OCR(file As String, Type As Integer) As IntPtr
End Function
<DllImport("AspriseOCR.dll", EntryPoint := "OCRpart", CallingConvention := CallingConvention.Cdecl)> _
public Function OCRpart(file As String, Type As Integer, startX As Integer, startY As Integer, width As Integer, height As Integer) As IntPtr
End Function
<DllImport("AspriseOCR.dll", EntryPoint := "OCRBarCodes", CallingConvention := CallingConvention.Cdecl)> _
Public Function OCRBarCodes(file As String, Type As Integer) As IntPtr
End Function
<DllImport("AspriseOCR.dll", EntryPoint := "OCRpartBarCodes", CallingConvention := CallingConvention.Cdecl)> _
Public Function OCRpartBarCodes(file As String, Type As Integer, startX As Integer, startY As Integer, width As Integer, height As Integer) As IntPtr
End Function
http://www.foxtable.com/webhelp/scr/1937.htm