11using System ;
2- using Dynamsoft ;
2+ using Dynamsoft ;
33using Dynamsoft . DBR ;
44
55namespace AccuracyFirstSettings
@@ -29,7 +29,7 @@ static public void outputResults(TextResult[] results)
2929 foreach ( TextResult result in results )
3030 {
3131 string barcodeFormat = result . BarcodeFormat == 0 ? result . BarcodeFormatString_2 : result . BarcodeFormatString ;
32- string message = "Barcode" + i + ":" + barcodeFormat + result . BarcodeText ;
32+ string message = "Barcode" + i + ":" + barcodeFormat + "," + result . BarcodeText ;
3333 Console . WriteLine ( message ) ;
3434 i ++ ;
3535 }
@@ -42,16 +42,16 @@ static public void outputResults(TextResult[] results)
4242
4343 static void Main ( string [ ] args )
4444 {
45- try
46- {
47- DMDLSConnectionParameters connectionInfo = BarcodeReader . InitDLSConnectionParameters ( ) ;
48- connectionInfo . OrganizationID = "200001" ;
49- EnumErrorCode errorCode = BarcodeReader . InitLicenseFromDLS ( connectionInfo , out string errorMsg ) ;
50- if ( errorCode != EnumErrorCode . DBR_SUCCESS )
51- {
52- Console . WriteLine ( errorMsg ) ;
53- }
54-
45+ try
46+ {
47+ DMDLSConnectionParameters connectionInfo = BarcodeReader . InitDLSConnectionParameters ( ) ;
48+ connectionInfo . OrganizationID = "200001" ;
49+ EnumErrorCode errorCode = BarcodeReader . InitLicenseFromDLS ( connectionInfo , out string errorMsg ) ;
50+ if ( errorCode != EnumErrorCode . DBR_SUCCESS )
51+ {
52+ Console . WriteLine ( errorMsg ) ;
53+ }
54+
5555 BarcodeReader dbr = new BarcodeReader ( ) ;
5656 TextResult [ ] results = null ;
5757 string fileName = "../../../../../images/AllSupportedBarcodeTypes.png" ;
@@ -70,15 +70,15 @@ static void Main(string[] args)
7070 configAccuracyFirstByTemplate ( ref dbr ) ;
7171 results = dbr . DecodeFile ( fileName , "" ) ;
7272 outputResults ( results ) ;
73- }
74- }
75- catch ( Exception exp )
76- {
77- Console . WriteLine ( exp . Message ) ;
73+ }
74+ }
75+ catch ( Exception exp )
76+ {
77+ Console . WriteLine ( exp . Message ) ;
7878 }
79- Console . WriteLine ( "Press any key to quit..." ) ;
79+ Console . WriteLine ( "Press any key to quit..." ) ;
8080 Console . ReadKey ( ) ;
8181 }
8282 }
8383}
84-
84+
0 commit comments