Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a bar-code reader Model: MS7120 (LS USB), I m developing a windows application for point of sale (POS) please guide me how i can read the value in my application from bar-code reader. If there is any dll for this please let me know the link from i can download.

many thnx in advance..
Regards
Aditya Tyagi
Posted

Three options:

1) A USB-barcode scanner will have keyboard emulation. Meaning, a scanned barcode will appear at your current input cursor as if you've typed the number/string manually into a keyboard. So you could just have a text input control and just don't bother if it's a keyboard or barcode scanner where the input comes from. Advantage: Easiest to set up. Disadvantage: You have to take care that the text input control always has the input focus when the user might want to scan a barcode.

2) The manufacturer of your barcode scanner MIGHT have an API for it. For low budget scanners there are most often none. Advantage: No trouble with an input control. Disadvantage: You're limiting your application to one type of barcode scanner. More work than for 1)

3) Use the Windows "Raw Input API". Explained and demonstrated in this CodeProject article: Using Raw Input from C# to handle multiple keyboards[^]
Advantage: No trouble with an input control. No trouble with vendor specific API's. Disadvantage: More work than for 1)
 
Share this answer
 
Ask the vendor, they will have an API or SDK and no doubt sample code too.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900