Pelles C forum

C language => User contributions => Topic started by: frankie on December 22, 2013, 11:51:29 PM

Title: QRC generator
Post by: frankie on December 22, 2013, 11:51:29 PM
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).
Title: Re: QRC generator
Post by: Bitbeisser on December 23, 2013, 05:22:10 AM
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
Title: Re: QRC generator
Post by: TimoVJL on December 23, 2013, 01:06:36 PM
Thank's Frankie :)
If someone needs dll, QREncode.def
Code: [Select]
LIBRARY 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
Title: Re: QRC generator
Post by: frankie on December 27, 2013, 05:27:45 PM
New Revision
  Version 1.1
    - Added calling convention in header files
    - Removed a bug from bitmap save routine