C++ Project Help

Arbaz123

Intermediate
Feb 24, 2011
216
0
21
Islamabad
I'm a student of 2nd semester and a little help is required regarding a project.
The project I had in mind mainly had the idea that I read the Barcode of our NUST ID cards through a USB Barcode scanner and then through File Handling check the directory if the existing data corresponding to that barcode already existed.
The only problem is that I don't know if it's do-able or not...If so then what will be the steps to proceed...?
 

puppet

Well-known member
Sep 30, 2013
2,169
0
42
In 2nd semester its totally programming simple n simplest , barcode reading device isnt a thing works this way
think of something else, make a chess or ludo or any management program
 

sohaib50k

Lalalalalala
Oct 5, 2010
2,932
2
43
Islamabad
This is doable if you do only the backend-software part.

Also depends on the output your barcode scanner.

You could use an arduino coupled with a bardcode scanner and some code to accomplish.
 

Arbaz123

Intermediate
Feb 24, 2011
216
0
21
Islamabad
I read somewhere that you can take input from a scanner just like the program takes input from a key-board...and the program,via some library, can decode the input...is that logically correct?
 

Arbaz123

Intermediate
Feb 24, 2011
216
0
21
Islamabad
That's exactly what I'm trying to understand...but I need some help to get started...Where to start...what to do in order to make this program...
 

namsu99

Proficient
Jun 17, 2011
861
0
21
Karachi
Okay how about this. We take in input from the scanner, decode it and store it in a file.

Then write a program that reads the data from the file and processes it like normal C++ programs we've learned to make.
 

Arbaz123

Intermediate
Feb 24, 2011
216
0
21
Islamabad
That is exactly what I had in mind but I'm not sure how the communication between the scanner and the program will work...
 

Newton

Well-known member
May 17, 2009
2,223
0
41
Lahore, Faisalabad
That is exactly what I had in mind but I'm not sure how the communication between the scanner and the program will work...
a normal usb scanner will come with its drivers/utility. what you can do is

write up a code which just reads whatever is coming on the usb port and displays it.
use a few test samples on the bar code and see what it reads using your code.
determine if you can decode it by writing more code. (see what the barcode gives you, ascii, hex, binary, decimal etc)
if you can decode it then you can write more code to do whatever you want.

if you are unable to decode it then i would recommend so use its utility to read and save the barcode.
 
General chit-chat
Help Users
We have disabled traderscore and are working on a fix. There was a bug with the plugin | Click for Discord
  • No one is chatting at the moment.
    C cattoboee: yo