Skip to content

Commit 5a1b7c8

Browse files
authored
Update ReadRateFirstSettings.cpp
1 parent e3dcad2 commit 5a1b7c8

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

samples/C++/Performance/ReadRateFirstSettings/ReadRateFirstSettings.cpp

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -126,20 +126,10 @@ int main() {
126126
char szErrorMsg[256];
127127
TextResultArray* barcodeResults = NULL;
128128

129-
// Initialize license
130-
/*
131-
// By setting organization ID as "200001", a free public trial license will be used for license verification.
132-
// Note that network connection is required for this license to work.
133-
//
134-
// When using your own license, locate the following line and specify your Organization ID.
135-
// organizationID = "200001";
136-
//
137-
// 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
138-
*/
139-
DM_DLSConnectionParameters paramters;
140-
CBarcodeReader::InitDLSConnectionParameters(&paramters);
141-
paramters.organizationID = const_cast<char*>("200001"); // replace it with your organization ID
142-
errorCode = CBarcodeReader::InitLicenseFromDLS(&paramters, szErrorMsg, 256);
129+
// 1.Initialize license.
130+
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
131+
// 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
132+
errorCode = CBarcodeReader::InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", szErrorMsg, 256);
143133
if (errorCode != DBR_OK)
144134
{
145135
cout << szErrorMsg << endl;

0 commit comments

Comments
 (0)