bardecode.com
barcode reading software
  • Home
  • Download
  • Purchase
  • SDK Licensing
  • Pricing
    • Windows SDK Price List
    • Windows SDK with PDF Extension Price List
    • Linux SDK Price List
    • Linux SDK with PDF Extension Price List
    • PDF Extension For Windows Price List
    • Multi-Platform Toolkit for .NET Price List
    • BardecodeFiler Desktop Only Price List
    • BardecodeFiler Windows Service Price List
    • DOS Command Prompt Barcode Tool Price List
    • Terms and Conditions
    • Refund Policy
  • Products
    • Softek Barcode Reader Toolkit for Windows
    • Softek Barcode Reader Toolkit for Linux
    • BardecodeFiler Desktop App
    • BardecodeFiler Windows Service
    • Windows DOS Command Prompt Tool
    • Multi-platform barcode reader toolkit for .NET
    • Aquaforest’s Autobahn DX
  • Knowledge Base
    • Documentation
    • Specifications
  • News
  • Contact
    • About Us
    • Terms and Conditions
    • Resellers
    • Links
Select Page ...

News

GetBarStringType - get the type of barcode

admin October 26, 2009 Documentation, Knowledge Base No Comments

Syntax

 

 

.net/java/ocx: Object.GetBarStringType(n)
com: Object.BarStringType(n)
dll: mtGetBarStringType(hBarcode, n)

Parameters

hBarcode Handle to an instance of the barcode toolkit (dll only).
n 1-based index to barcode to be queried.

Return Value

GetBarStringType returns a string representing the type of barcode.

In .net applications, use System.Runtime.InteropServices.Marshal.PtrToStringAnsi to convert the IntPtr returned by mtGetBarString to a String.

Remarks

Call GetBarStringType after calling ScanBarCode to determine the types of barcode found in a document. Examples of values returned by the function are “CODE39” and “CODE128”.

Win32 dll declarations:

VB.Net:

Private Declare Function mtGetBarString Lib “SoftekBarcode” (ByVal hBarcode As System.IntPtr, ByVal nBarCode As Short) As System.IntPtr

Visual C++:

 

extern “C” {
LPCSTR __stdcall mtGetBarString(HANDLE hBarcode, short index);
}


 

← LoadXMLSettings – load settings from an XML file
GetBarStringPos – position and page number for a barcode →
admin

  • Copyright © 2023 Softek Software Ltd. All Rights Reserved