LBarCode::BarVersionInfo

#include "ltwrappr.h"

static L_INT LBarCode::BarVersionInfo(pBarCodeVersion, uStructSize)

Loads LEADTOOLS Barcode product information into a structure.

Parameters

pBARCODEVERSION pBarCodeVersion

Pointer to the BARCODEVERSION structure to be updated with the barcode version information.

L_UINT uStructSize

Size of the BARCODEVERSION structure, in bytes, for versioning. Use sizeof(BARCODEVERSION).

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

To use this function, declare a BARCODEVERSION variable and pass its address as the parameter of this function. The function updates the fields in the structure. For field descriptions, refer to the BARCODEVERSION structure.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For complete sample code, refer to the BarCode demo.

L_INT LBarCode_BarVersionInfoExample(HWND hWnd) 
 
{ 
   L_INT nRet; 
 
   BARCODEVERSION BarVerInfo;     /* LEAD BARCODE Version Information structure. */ 
 
   L_TCHAR         szBuffer[1024]; /* Buffer to hold information for display. */ 
 
   /* Get the bar code version information */ 
 
   nRet = LBarCode::BarVersionInfo(&BarVerInfo, sizeof(BarVerInfo)); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   /* Format the message string with data from the BARCODEVERSION structure */ 
 
   wsprintf(szBuffer, TEXT("LEAD Product: %hs\n\nVersion %d.%d\n\nDate: %hs\n\nTime: %hs"), 
 
            (L_TCHAR *)BarVerInfo.Product, BarVerInfo.MajorNumber, 
 
            BarVerInfo.MinorNumber, (L_TCHAR *)BarVerInfo.Date, (L_TCHAR *)BarVerInfo.Time); 
 
   /* Display the message string */ 
 
   MessageBox(hWnd, szBuffer, TEXT("BARCODE Version Information"), MB_OK ); 
 
   return SUCCESS; 
 
} 

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Barcode C++ Class Library Help