C++ and barcodes

This is a discussion on C++ and barcodes within the C++ Programming forums, part of the General Programming Boards category; Hi
I'm currently working on a project involving handheld terminals. The project is about registering packages using barcodescanners. My task ...

C++ and barcodes

Hi

I'm currently working on a project involving handheld terminals. The project is about registering packages using barcodescanners. My task is to develope the program doing this. In regards to this I have a question I hope someone can help me with;
Does C++ support barcodes? Is it possible to write our program using C++?

Might have misunderstood your question, but a standard barcode scanner will output a string of characters representing the barcode (usually to the serial port or keyboard port for a keyboard emulation). All your s/w has to do is pick up that string and interpret it. It doesn't need to "understand" barcodes - the scanning h/w handles that.

A barcode scanner will read a series of lines and interperet that into binary, which will be sent to your program. Since C++ supports binary then there shouldn't be any problem. Your program has to read the security padding and find the actual product and manufacturer numbers out of that binary stream which isn't too hard since you'll probably be given the proper values for these and can simply do a test to see if they match.

"Is is possible to... does C++ Support?"

Why do people ask these things? C/C++/ASM isn't VB, it doesn't "support" thingz, I can't stress this enough, this is a PROGRAMMING LANGUAGE, not a PRODUCT. You can do anything with it taht u can think of how to do, its all a matter of you're creative potential, far too many seem to have bad tutorz in C/C++/ASM *sigh*, its a shame...

>its a shame...
What? A shame that others don't know as much as you? That some people haven't had enough experiences to understand the power of C++? If you were a teacher would you overwhelm your class by saying "You can do everything you can imagine with C++, now you're going to learn how to do it"? I can see half of the class walking out right there.

>Why do people ask these things?
Probably because they don't know the answer. How would you feel if you asked a question and got a response similar to your post? "Oh, that's so simple you should already know it. What a moron!" is how I interpereted your post. [sarcasm]Here's an idea, if we make everyone who asks a question feel bad enough they won't bother learning more and leave us alone, what do you think?[/sarcasm] Or we could actually be nice and try to help as best we can, that's the point of this forum, to pass information to those not as experienced as we are.

In most of the small handhelds with a bad code reader, the kernel has an inbuilt driver which exposes a simple API for extracting the string. The exact details are kernel specific of course, but most are pretty easy.