News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

QRC generator

Started by frankie, December 22, 2013, 11:51:29 PM

Previous topic - Next topic

frankie

These days the so called QR codes are very diffused, just click on your smartphone take the picture and get the info.
There is a nice free library 'libqrencode' by Kentaro Fukuchi that works well enough.
Using that library a I wrote a small program that generates the QR code and eventually save it in a bitmap.
By adding graphic libraries you can create codes in different formats (jpg, png, etc).
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Bitbeisser

Nice code and reference. I need to both print and read QR code for a project of mine (not C though), and this is a nice push in that direction, thanks...  ;)

Ralf

TimoVJL

Thank's Frankie :)
If someone needs dll, QREncode.defLIBRARY QREncode.dll
EXPORTS
QRinput_new
QRinput_new2
QRinput_newMQR
QRinput_append
QRinput_appendECIheader
QRinput_getVersion
QRinput_setVersion
QRinput_getErrorCorrectionLevel
QRinput_setErrorCorrectionLevel
QRinput_setVersionAndErrorCorrectionLevel
QRinput_free
QRinput_check
QRinput_Struct_new
QRinput_Struct_setParity
QRinput_Struct_appendInput
QRinput_Struct_free
QRinput_splitQRinputToStruct
QRinput_Struct_insertStructuredAppendHeaders
QRinput_setFNC1First
QRinput_setFNC1Second
QRcode_encodeInput
QRcode_encodeString
QRcode_encodeString8bit
QRcode_encodeStringMQR
QRcode_encodeString8bitMQR
QRcode_encodeData
QRcode_encodeDataMQR
QRcode_free
QRcode_encodeInputStructured
QRcode_encodeStringStructured
QRcode_encodeString8bitStructured
QRcode_encodeDataStructured
QRcode_List_size
QRcode_List_free
QRcode_APIVersion
QRcode_APIVersionString
QRcode_clearCache
May the source be with you

frankie

New Revision
  Version 1.1
    - Added calling convention in header files
    - Removed a bug from bitmap save routine
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide