#include "ltwrappr.h"
static L_INT LBarCode::ParseECIData(pszBarCodeData, nDataLength, pszECIData, nECIDataLength)
Parses ECI barcode data.
Barcode data string.
Barcode data size.
Pointer to string buffer to be updated with the ECI data.
ECI data size.
| Value | Meaning |
|---|---|
| SUCCESS | The function was successful. |
| < 1 | An error occurred. Refer to Return Codes. |
The parsed ECI data is UTF8 encoding, or NULL if the input data is not ECI.
Required DLLs and Libraries
For complete sample code refer to BarCode demo.
L_INT LBarCode__ParseECIData(HWND hWnd, pBARCODEDATA pBarCodeData){L_WCHAR szBuffer[256];L_CHAR* pszECIData = NULL;L_INT nLength = 0;if (!pBarCodeData)return FAILURE;// Parse Barcode ECI dataL_INT nRet = LBarCode::ParseECIData(pBarCodeData->pszBarCodeData, pBarCodeData->nSizeofBarCodeData, &pszECIData, &nLength);if(nRet == SUCCESS && pszECIData != NULL){if(MultiByteToWideChar(CP_UTF8, 0, pszECIData, nLength, szBuffer, 256)){MessageBox(hWnd, szBuffer, L_TEXT("ECI Data"), MB_OK);}else{nRet = FAILURE;}GlobalFreePtr(pszECIData);}return nRet;}