FreeBarcodeResults Static Method
Frees memory allocated for barcode results.
Syntax
static void FreeBarcodeResults(pBarcodeResultArray *ppResults);
Parameters
- ppResults
- Barcode results.
Remarks
The static function FreeBarcodeResults frees barcode results allocated by reader.
Example
CBarcodeReader reader;
int iErrorCode = reader.InitLicense("88FFAA09C42D5DE******");
ReaderOptions options;
options.iMaxBarcodeNumPerPage = 1;
options.llBarcodeFormats = (OneD | QR_CODE | PDF417 | DATAMATRIX);
reader.SetReaderOptions(options);
iErrorCode = reader.DecodeFile("C:\\test.bmp");
if(iErrorCode != DBR_OK)
return;
pBarcodeResultArray pResults = NULL;
reader.GetBarcodes(&pResults);
int iCount = pResults->iBarcodeCount;
for(int i = 0; i < iCount; ++i)
{
printf("%d: %s\n", i, pResults->ppBarcodes[i]->pBarcodeData);
}
CBarcodeReader::FreeBarcodeResults(&pResults);