Thread: C++ and barcodes

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    3

    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++?

  2. #2
    www.entropysink.com
    Join Date
    Feb 2002
    Posts
    603
    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.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    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.

    -Prelude
    My best code is written with the delete key.

  4. #4
    Registered User minime6696's Avatar
    Join Date
    Aug 2001
    Posts
    267

    Angry "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...

    SPH

  5. #5
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >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.

    -Prelude
    My best code is written with the delete key.

  6. #6
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    Nice retort Prelude.

    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.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed