Skip to content

Commit 5032c89

Browse files
authored
Update HelloWorld.c
update init license
1 parent c0d31b8 commit 5032c89

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

samples/C/HelloWorld/HelloWorld.c

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,12 @@ void main()
2525
TextResultArray* barcodeResults = NULL;
2626
int index;
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-
//
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 want to use an offline license, please contact Dynamsoft Support: https://www.dynamsoft.com/company/contact/
3631
// 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
3732
*/
38-
DM_DLSConnectionParameters paramters;
39-
DBR_InitDLSConnectionParameters(&paramters);
40-
paramters.organizationID = "200001"; // replace it with your organization ID
41-
errorCode = DBR_InitLicenseFromDLS(&paramters, szErrorMsg, 256);
33+
errorCode = DLR_InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", szErrorMsg, 256);
4234
if (errorCode != DBR_OK)
4335
{
4436
printf("%s\r\n", szErrorMsg);

0 commit comments

Comments
 (0)