Initialize and Destroy Functions
Function | Description |
---|---|
DBR_CreateInstance |
Creates an instance of Dynamsoft Barcode Reader. |
DBR_DestroyInstance |
Destroys the instance of Dynamsoft Barcode Reader. |
DBR_CreateInstance
Creates an instance of Dynamsoft Barcode Reader.
DBR_API void* DBR_CreateInstance ()
Return Value
Returns an instance of Dynamsoft Barcode Reader. If failed, returns NULL
.
Code Snippet
char errorBuf[512];
DBR_InitLicense("YOUR-LICENSE-KEY", errorBuf, 512);
void* barcodeReader = DBR_CreateInstance();
DBR_DestroyInstance(barcodeReader);
DBR_DestroyInstance
Destroys an instance of Dynamsoft Barcode Reader.
DBR_API void DBR_DestroyInstance (void* barcodeReader)
Parameters
[in] barcodeReader
Handle of the barcode reader instance.
Code Snippet
char errorBuf[512];
DBR_InitLicense("YOUR-LICENSE-KEY", errorBuf, 512);
void* barcodeReader = DBR_CreateInstance();
DBR_DestroyInstance(barcodeReader);