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

Unicode problems in Delphi 2009

admin November 26, 2012 Knowledge Base, Software Development Kits No Comments

Delphi 2009 developers may have found some problems passing strings to and from the toolkit. This seems to be down to unicode support in Delphi 2009 and can be resolved with some simple code changes.

For example, in previous versions of Delphi you might have code similar to:

NumCodes:=stScanBarCode(PChar(OpenDialog1.FileName));

…but in Delphi 9 this needs to change to:

NumCodes:=stScanBarCode(pChar(UTF8String(OpenDialog1.FileName)));

There are similar issues getting at the results of a scan.

In previous versions you could simply call stGetBarString(i), but in Delphi 9 you must use the following:

pAnsiChar(stGetBarString(i)

Download a sample project for Delphi 2009

Many thaks to Tom Dieckhoff for working this out.

← Performance considerations for PDF documents
Handling Unicode Encoded Barcodes in VB.Net →
admin

  • Copyright © 2023 Softek Software Ltd. All Rights Reserved