7
Answers

how to generate barcode code 128 and then read it

sonia naidu

sonia naidu

12y
4.4k
1
how to generate barcode code 128 and then read it???
i have a .dll file downloaded from various sites and use it for scanning a barcode in an image but im unable to open it.
hence could not see the code.
im using microsoft visual studio 2010
please reply asap/
Answers (7)
0
Sivaraman Dhamodaran
NA 61.8k 2.7m 12y
Well. You don't have any special char need in your spec.

Define a strings like:
"abcdefghijklmnopqrstuvwxyz0123456789".
"abcdefghijklmnopqrstuvwxyz"
" 0123456789"
Have a boolean flag for each.
Algo:
1) Iterate through each pwd char. Make sure the char falls in above string. When char not found, set the flag to false. When a char is lower case letter set the relevant flag to true. When a char is digit set flag related to digit as true. At the end of iteration you can check the flags to satisfy first three points.
2) For fourth point you need a inner loop that again iterates through all your chars. Here you can check the repeatable patterns.