CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2005
    Location
    Chennai , India
    Posts
    1,375

    [RESOLVED] Barcode generator

    Hello dude,

    how to generate Barcode ? any Algorithm, codes .. ...
    i have read barcode reader .. but yet to come across the barcode genarator ...
    It takes seconds for rating…that actually compensates the minutes taken for giving answers
    The biggest guru-mantra is: Never share your secrets with anybody. It will destroy you.
    Regards, Be generous->Rate people
    Jayender!!

  2. #2
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: Barcode generator

    if you can invest some time in understanding the java code, here are 2 links to open source barcode projects, The documentation can certainly help you debelop/port the barcode creation algo into C++.

    http://jbarcodebean.sourceforge.net/

    http://barbecue.sourceforge.net/
    Regards,
    Ramkrishna Pawar

  3. #3
    Join Date
    Jun 2005
    Location
    Chennai , India
    Posts
    1,375

    Thumbs up Re: Barcode generator

    Quote Originally Posted by Krishnaa
    if you can invest some time in understanding the java code, here are 2 links to open source barcode projects, The documentation can certainly help you debelop/port the barcode creation algo into C++.

    http://jbarcodebean.sourceforge.net/

    http://barbecue.sourceforge.net/
    Thanks a lot Krishna, will check it up ..
    and
    more answers are welcome ..


    thanks,
    Jayender

  4. #4
    Join Date
    Jun 2005
    Posts
    1,255

    Smile Re: Barcode generator

    I generate barcode like I print strings of characters, except that I use a special font. For instance, in C:
    Code:
    hfont = CreateFont(18, 0, 0, 0, 0,
                0, 0, 0, 0, 0, 0, 0, 0, "3 of 9 Barcode"); // specify a bar font
    hfont_old = (HFONT) SelectObject(hdc, hfont); // select the font
    
    TextOut(hdc, x, y, "*123456789*", 11); // print the barcode
    
    SelectObject(hdc, hfont_old);
    DeleteObject(hfont);
    There are several fonts available.
    I use "3 of 9", also called "39", because it is free and simple. With 39, the string of digits should start and end with stars (see the code above). With some other fonts, some checksum are needed.

  5. #5
    Join Date
    Feb 2005
    Location
    Pune (India)
    Posts
    644

    Thumbs up Re: Barcode generator

    "Devise the simplest possible solution that solves the problems"

  6. #6
    Join Date
    Jun 2005
    Location
    Chennai , India
    Posts
    1,375

    Thumbs up Re: Barcode generator

    Wow.. thanks dude... thanks a lot..

    i got the idea from here :
    barcode generator ,

    anyway thanks for ur inputs ...

    I could not rate u guys today ,as i have given out too many reputaions today ,this is the message
    "You have given out too much Reputation in the last 24 hours, try again later.",
    will do it tomorrow.
    It takes seconds for rating…that actually compensates the minutes taken for giving answers
    The biggest guru-mantra is: Never share your secrets with anybody. It will destroy you.
    Regards, Be generous->Rate people
    Jayender!!

  7. #7
    Join Date
    Jan 2013
    Posts
    2

    Re: [RESOLVED] Barcode generator

    Luck to be here, I wanna choose a online barcode generator, so I have to search more info to descide which one is the best.

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