Skip to content

Commit 620fd59

Browse files
authored
Update AccuracyFirstSettings.cpp
1 parent 8899149 commit 620fd59

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

samples/C++/Performance/AccuracyFirstSettings/AccuracyFirstSettings.cpp

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,10 @@ int main() {
8484
int errorCode = 0;
8585
char szErrorMsg[256];
8686
TextResultArray* barcodeResults = NULL;
87-
// Initialize license
88-
/*
89-
// By setting organization ID as "200001", a free public trial license will be used for license verification.
90-
// Note that network connection is required for this license to work.
91-
//
92-
// When using your own license, locate the following line and specify your Organization ID.
93-
// organizationID = "200001";
94-
//
95-
// If you don't have a license yet, you can request a trial from https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&utm_source=samples&package=c_cpp
96-
*/
97-
DM_DLSConnectionParameters paramters;
98-
CBarcodeReader::InitDLSConnectionParameters(&paramters);
99-
paramters.organizationID = const_cast<char*>("200001"); // replace it with your organization ID
100-
errorCode = CBarcodeReader::InitLicenseFromDLS(&paramters, szErrorMsg, 256);
87+
// 1.Initialize license.
88+
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
89+
// If you don't have a license yet, you can request a trial from https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&utm_source=samples&package=c_cpp
90+
errorCode = CBarcodeReader::InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", szErrorMsg, 256);
10191
if (errorCode != DBR_OK)
10292
{
10393
cout << szErrorMsg << endl;

0 commit comments

Comments
 (0)