Programming hint required

This is a discussion on Programming hint required within the C++ Programming forums, part of the General Programming Boards category; Sir, I want to know how could I use barcodes in my program. How can I read barcode in my ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    1

    Programming hint required

    Sir, I want to know how could I use barcodes in my program. How can I read barcode in my c++ program and print from my c++program using my HP Deskjet 600 printer.

  2. #2
    I'm Back
    Join Date
    Dec 2001
    Posts
    556
    Sir, I want to know...
    well i don't think that anybody here has been Knighted yet, so you can drop the SIR, old chap.


    BTW. sorry cant help you there, though an interesting question??

  3. #3
    Unregistered
    Guest
    Not sure of your exact requirements, but this may help...

    A) Most barcode readers plug into the keyboard port and emulate key presses, that is, you scan a bar code that represents, AB2784754, and that appears on the screen just as though the keyboard typed it. The conversion is done on a hardware level, so reading the keyboard buffer will sufice, most readers even append a C/R at the end of the code.

    B) If you're working in Windows it's possible to obtain barcode fonts and use them as you would any other font. If you're printing from DOS you're going to have trouble getting barcode's to print on your printer. Basically you will have to set the printer to some sort of graphics mode, you will then have to have you program build the barcode graphic from its component parts, there are many different types of bar codes, some easier to print/read than others, but each type has advantages and limitations.

    I hope this helps, can you give more of an idea of what you're trying to acomplish?

    Azuth.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 10:13 AM
  2. Lvalue required error
    By eklavya8 in forum C Programming
    Replies: 5
    Last Post: 01-03-2009, 04:47 PM
  3. Replies: 28
    Last Post: 07-17-2006, 12:35 AM
  4. NAQ: Everything you never wanted to know about CPP
    By evildave in forum C Programming
    Replies: 21
    Last Post: 12-12-2005, 10:56 AM
  5. Determining required flops to run C code
    By mollyann in forum C Programming
    Replies: 5
    Last Post: 03-30-2005, 01:28 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21