I'm interested in making a program (in c++) that will need to read product bar codes. So, I just need some general information about interfacing with a barcode scanner (I'll only need the numerical part of the barcode, in order to identify a product) in a c++ program. If I have it plugged into the ps/2 port, then do I treat it like a keyboard?
If it's plugged into the ps/2 port, then it will probably work like a keyboard. When the scanner reads in a barcode, it will send the number followed by a newline or carriage return (or both). This makes it very easy to capture barcodes with your application.