Skip to content

Commit 96e6480

Browse files
authored
Update VideoDecoding.cpp
1 parent 6b332ab commit 96e6480

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

samples/C++/VideoDecoding/VideoDecoding.cpp

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,11 @@ int main()
8080
}
8181

8282
int iRet = -1;
83-
84-
// Initialize license
85-
/*
86-
// By setting organization ID as "200001", a free public trial license will be used for license verification.
87-
// Note that network connection is required for this license to work.
88-
//
89-
// When using your own license, locate the following line and specify your Organization ID.
90-
// organizationID = "200001";
91-
//
92-
// 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
93-
*/
9483
char szErrorMsg[256];
95-
DM_DLSConnectionParameters paramters;
96-
CBarcodeReader::InitDLSConnectionParameters(&paramters);
97-
paramters.organizationID = const_cast<char*>("200001"); // replace it with your organization ID
98-
iRet = CBarcodeReader::InitLicenseFromDLS(&paramters, szErrorMsg, 256);
84+
// Initialize license.
85+
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
86+
// 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
87+
iRet = CBarcodeReader::InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", szErrorMsg, 256);
9988
if (iRet != DBR_OK)
10089
{
10190
cout << szErrorMsg << endl;

0 commit comments

Comments
 (0)