Skip to content

Commit 8899149

Browse files
authored
Update HelloWorld.cpp
1 parent 9a64ab9 commit 8899149

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

samples/C++/HelloWorld/HelloWorld.cpp

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,10 @@ int main()
2525
char szErrorMsg[256];
2626
TextResultArray* barcodeResults = NULL;
2727

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

0 commit comments

Comments
 (0)