CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Reading barcode

  1. #1
    Join Date
    May 2012
    Location
    Australia
    Posts
    15

    Reading barcode

    Anyone got codez for reading a 2D barcode using C++? I so lost.

  2. #2
    Join Date
    Mar 2001
    Posts
    2,529

    Re: Reading barcode

    A Barcode can be displayed a font. There is no need to have a code typically to do this, you just need a barcode font. Then the output from a barcode reader is ASCII characters. The encoding for barcode 3 of 9 for example is to surround your text with asterisks. As such 1234 becomes *1234*. If you type that in 3 of 9 font, most barcode readers are programmed to read it.

    HTH,
    ahoodin
    To keep the plot moving, that's why.

  3. #3
    Join Date
    May 2012
    Location
    Australia
    Posts
    15

    Re: Reading barcode

    Why no codez or link??? No help. Thank anyway. Anyon else?

  4. #4
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Reading barcode

    I bet you have a specific barcode reader in mind, why not read the manual?

    Just guessing now but for me the most likely interface is USB and that the reader show up as a serial port device.
    http://msdn.microsoft.com/en-us/library/ff802693.aspx
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured