Skip to content

Commit 6b332ab

Browse files
authored
Update SpeedFirstSettings.cpp
1 parent 5a1b7c8 commit 6b332ab

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

samples/C++/Performance/SpeedFirstSettings/SpeedFirstSettings.cpp

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -140,21 +140,10 @@ int main() {
140140
char szErrorMsg[256];
141141
TextResultArray* barcodeResults = NULL;
142142

143-
// Initialize license
144-
/*
145-
// By setting organization ID as "200001", a free public trial license will be used for license verification.
146-
// Note that network connection is required for this license to work.
147-
//
148-
// When using your own license, locate the following line and specify your Organization ID.
149-
// organizationID = "200001";
150-
//
151-
// 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
152-
*/
153-
DM_DLSConnectionParameters paramters;
154-
CBarcodeReader::InitDLSConnectionParameters(&paramters);
155-
paramters.organizationID = const_cast<char*>("200001"); // replace it with your organization ID
156-
errorCode = CBarcodeReader::InitLicenseFromDLS(&paramters, szErrorMsg, 256);
157-
if (errorCode != DBR_OK)
143+
// 1.Initialize license.
144+
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
145+
// 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
146+
errorCode = CBarcodeReader::InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", szErrorMsg, 256);
158147
{
159148
cout << szErrorMsg << endl;
160149
}

0 commit comments

Comments
 (0)