Knowledge Base

The leading provider of version control solutions and TWAIN SDKs

How to upgrade Dynamsoft Barcode Reader Windows Edition to the latest version?

Upgrade from:

To upgrade Dynamsoft Barcode Reader from trial version to licensed version, you only need to replace the license key. No other value needs to be changed.

For more info on how to change the license, please refer to this KB article.

To upgrade Dynamsoft Barcode Reader .NET from full version 4.x or older to the latest version, please follow the steps:

  1. Gets Dynamsoft Barcode Reader 5.x resources

    Please download Dynamsoft Barcode Reader 5.x here. After running the installer, you can get the resources under the installation folder.

  2. Replace Dynamsoft.BarcodeReader.dll

    The dll locates at C:\Program Files (x86)\Dynamsoft\Barcode Reader 5.x\Components\DotNet\. Choose a proper .dll according to the .NET Framework version you are using.

    2.0 is for .NET Framework 2.0-3.5.

    4.0 is for .NET Framework 4.0 or above.

  3. Update the .LicenseKeys

    Reset the property .LicenseKeys value, replace the old value with a new one for version 5.

    The 30-day trial key can be found at C:\Program Files (x86)\Dynamsoft\Barcode Reader 5.x\LicenseManager.exe.

    For full version users, please check the license email for the full key.

Important: The following methods are deprecated in Dynamsoft Barcode Reader 5.x.

  • DecodeFileRect
  • DecodeBitmapRect
  • DecodeStreamRect
  • DecodeBase64StringRect

In Dynamsoft Barcode Reader 5.x, the barcode scan region can be specified using the method .AddRegion().

The following example shows how to update the code to perform zonal barcode reading with v5 dll. We'll take DecodeFileRect method for example:

Before:

Dim reader As BarcodeReader = New Dynamsoft.Barcode.BarcodeReader()
reader.LicenseKeys = "<Put your v4 license key here>"
Dim options As ReaderOptions = New ReaderOptions
options.MaxBarcodesToReadPerPage = 100
options.BarcodeFormats = BarcodeFormat.PDF417
reader.ReaderOptions = options
'Performs zonal barcode reading with Barcode Reader v4.x or earlier
Dim rect As Rectangle = New Rectangle(0, 0, 270, 270)
reader.DecodeFileRect("C:\BarcodeImages\ScanQRCode.jpg", rect)
After:
Dim reader As BarcodeReader = New Dynamsoft.Barcode.BarcodeReader()
reader.LicenseKeys = "<Put your v5 license key here>"
Dim options As ReaderOptions = New ReaderOptions
options.MaxBarcodesToReadPerPage = 100
options.BarcodeFormats = BarcodeFormat.PDF417
reader.ReaderOptions = options
'Performs zonal barcode reading with Barcode Reader v5.x
reader.ClearAllRegions()
reader.AddRegion(0, 0, 270, 270, false)
reader.DecodeFile("C:\BarcodeImages\ScanQRCode.jpg")

For more information about the improvements and new features, please check the Release Notes.

Should you have any questions, please contact us at support[at]dynamsoft.com.

To upgrade Dynamsoft Barcode Reader ActiveX/COM from full version 4.x or older to the latest version, please follow the steps:

  1. Gets Dynamsoft Barcode Reader 5.x resources

    Please download Dynamsoft Barcode Reader 5.x here. After running the installer, you can get the resources under the installation folder.

  2. Replace the old dll files with new ones.

    The .dll files can be found under C:\Program Files (x86)\Dynamsoft\Barcode Reader 5.x\Components\ActiveX\.

  3. Deprecated APIs and replacements:
    • Class BarcodeFormat: use enum enumBarcodeFormat instead
    • Class ReaderOptions: use BarcodeReader Class instead
    • method DecodeFileRect: use AddRegion + DecodeFile instead
    • method DecodeDIBRect: use AddRegion + DecodeDIB instead
    • method DecodeStreamRect: use AddRegion + DecodeStream instead
    • method DecodeBase64StringRect: use AddRegion + DecodeBase64String instead
    • method DecodeBufferRect: use AddRegion + DecodeBufferEx instead
    • method DecodeBuffer: use AddRegion + DecodeBufferEx instead

To upgrade Dynamsoft Barcode Reader C from full version 4.x or older to the latest version, please follow the steps:

  1. Gets Dynamsoft Barcode Reader 5.x resources

    Please download Dynamsoft Barcode Reader 5.x here. After running the installer, you can get the resources under the installation folder.

  2. Replace the header file

    Replace the old If_DBR.h file and other header files with DynamsoftBarcodeReader.h

    The new DynamsoftBarcodeReader.h file can be found under C:\Program Files (x86)\Dynamsoft\Barcode Reader 5.x\Components\C_C++\Include\.

  3. Replace the .LIB file

    Replace .LIB files with new ones in your existing application.

    The .LIB files can be found under C:\Program Files (x86)\Dynamsoft\Barcode Reader 5.x\Components\C_C++\Lib\.

  4. Initiate the barcode reader object and use it in a new way;
    • Define the barcode handler
      hBarcode = DBR_CreateInstance();
    • Change the license
      DBR_InitLicenseEx(hBarcode,"<Put your license key here>");
  5. Deprecated APIs and replacements:
    • const BarcodeFormat: use enum BarcodeFormat instead
    • struct BarcodeResult: renamed to SBarcodeResult
    • struct BarcodeResultArray: renamed to SBarcodeResultArray
    • method DBR_InitLicense: use DBR_InitLicenseEx instead
    • method DBR_DecodeFile/DBR_DecodeFileRect: use DBR_AddRegion + DBR_DecodeFileEx instead
    • method DBR_DecodeBuffer/DBR_DecodeBufferRect: use DBR_AddRegion + DBR_DecodeBufferEx instead
    • method DBR_DecodeStream/DBR_DecodeStreamRect: use DBR_AddRegion + DBR_DecodeStreamEx instead
    • method DBR_DecodeBase64String/DBR_DecodeBase64StringRect: use DBR_AddRegion + DBR_DecodeBase64StringEx instead
    • method DBR_DecodeDIB/DBR_DecodeDIBRect: use DBR_AddRegion + DBR_DecodeDIBEx instead

To upgrade Dynamsoft Barcode Reader C++ from full version 4.x or older to the latest version, please follow the steps:

  1. Gets Dynamsoft Barcode Reader 5.x resources

    Please download Dynamsoft Barcode Reader 5.x here. After running the installer, you can get the resources under the installation folder.

  2. Replace the header file

    Replace the old If_DBRP.h file and other header files with DynamsoftBarcodeReader.h

    The new DynamsoftBarcodeReader.h file can be found under C:\Program Files (x86)\Dynamsoft\Barcode Reader 5.x\Components\C_C++\Include\.

  3. Replace the .LIB file

    Replace .LIB files with new ones in your existing application.

    The .LIB files can be found under C:\Program Files (x86)\Dynamsoft\Barcode Reader 5.x\Components\C_C++\Lib\.

  4. Deprecated APIs and replacements:
    • const BarcodeFormat: use enum BarcodeFormat instead
    • struct ReaderOptions: use CBarcodeReader Class instead
    • struct BarcodeResult: renamed to SBarcodeResult
    • struct BarcodeResultArray: renamed to SBarcodeResultArray
    • method DecodeFile/DecodeFileRect: use AddRegion + DecodeFileEx instead
    • method DecodeBuffer/DecodeBufferRect: use AddRegion + DecodeBufferEx instead
    • method DecodeStream/DecodeStreamRect: use AddRegion + DecodeStreamEx instead
    • method DecodeBase64String/DecodeBase64StringRect: use AddRegion + DecodeBase64StringEx instead
    • method DecodeDIB/DecodeDIBRect: use AddRegion + DecodeDIBEx instead



Article Details

Last Updated
6th of April, 2016

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF

User Opinions (0 votes)

No users have voted.

How would you rate this answer?



Thank you for rating this answer.

Related Articles

No related articles were found.

Attachments

No attachments were found.

Continue