L_BarCodeVersionInfo
#include "ltbar.h"
L_INT EXT_FUNCTION L_BarCodeVersionInfo(pBarCodeVersion)
pBARCODEVERSION pBarCodeVersion; |
/* pointer to a BARCODEVERSION structure */ |
Loads LEADTOOLS Barcode product information into a structure.
Parameter |
Description |
pBarCodeVersion |
Pointer to the BARCODEVERSION structure to be updated with the barcode version information. |
Returns
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
LTBAR For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
See Also
Functions: |
L_BarCodeRead, L_BarCodeWriteExt, L_BarCodeFree, L_BarCodeIsDuplicated, L_BarCodeGetDuplicated, L_BarCodeGetNextDuplicated, L_BarCodeGetFirstDuplicated, L_BarCodeWriteExt2 |
Topics: |
Example
For complete sample code refer to MFCBar32 demo.
L_VOID GetBarCodeVerInfo(HWND hWnd)
{
BARCODEVERSION BarVerInfo; /* LEAD BARCODE Version Information structure. */
L_TCHAR szBuffer[1024]; /* Buffer to hold information for display. */
/* Get the version information */
L_BarCodeVersionInfo (&BarVerInfo);
/* 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 L_FAR *)BarVerInfo.Product, BarVerInfo.MajorNumber,
BarVerInfo.MinorNumber, (L_TCHAR L_FAR *)BarVerInfo.Date, (L_TCHAR L_FAR *)BarVerInfo.Time);
/* Display the message string */
MessageBox(hWnd, szBuffer, TEXT("BARCODE API Version Information"), MB_OK );
}