Skip to content

Commit 9a64ab9

Browse files
authored
Update GeneralSettings.cpp
1 parent d221ad0 commit 9a64ab9

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

samples/C++/GeneralSettings/GeneralSettings.cpp

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,10 @@ int main()
2626
PublicRuntimeSettings settings;
2727
TextResultArray* barcodeResults = NULL;
2828

29-
// 1. Initialize license
30-
/*
31-
// By setting organization ID as "200001", a free public trial license will be used for license verification.
32-
// Note that network connection is required for this license to work.
33-
//
34-
// When using your own license, locate the following line and specify your Organization ID.
35-
// organizationID = "200001";
36-
//
37-
// 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
38-
*/
39-
DM_DLSConnectionParameters paramters;
40-
CBarcodeReader::InitDLSConnectionParameters(&paramters);
41-
paramters.organizationID = const_cast<char*>("200001"); // replace it with your organization ID
42-
errorCode = CBarcodeReader::InitLicenseFromDLS(&paramters, szErrorMsg, 256);
29+
// 1.Initialize license.
30+
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
31+
// 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
32+
errorCode = CBarcodeReader::InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", szErrorMsg, 256);
4333
if (errorCode != DBR_OK)
4434
{
4535
cout << szErrorMsg << endl;

0 commit comments

Comments
 (0)