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!!
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++.
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++.
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.
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!!
Bookmarks