Solved

Is it possible that determine the bardcode  from which barcode scanner?

Posted on 2015-01-11
2
159 Views
Last Modified: 2015-01-14
hello sir
i have a computer with multiple USB barcode scanner .is it possible that detemine the barcode is from which scanner when it's scanning?how do i do this,im using Visual c++?
best regards & thanks
ken
0
Comment
Question by:ken yup
2 Comments
 
LVL 35

Accepted Solution

by:
Kimputer earned 500 total points
ID: 40544028
It requires a lot of low level programming and Windows API call, maybe also keyboard hooks. I foresee extra problems if the barcode scanners are EXACTLY the same too (easier programming if they're all different brand/types). However, I don't have the answer to this, sadly.

Here's a link that might help though (since a barcode scanner is basically still a "keyboard", and after you get this c# working, slowly try to translate back to c++): http://www.codeproject.com/Articles/17123/Using-Raw-Input-from-C-to-handle-multiple-keyboard
0
 
LVL 13

Expert Comment

by:frankhelk
ID: 40544625
Depending on the type of barcode scanner you might be able to program them for the inclusion of a fingerprint into the scan result - i.e. S01#BARCODE instead of BARCODE.

There might be more ways to distinguish the source scanner, but these depend on the scanner type and the exact way of integration into the system, either ...
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now