NO

Author Topic: QRC generator  (Read 3728 times)

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2096
QRC generator
« 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).
« Last Edit: December 27, 2013, 05:26:36 PM by frankie »
It is better to be hated for what you are than to be loved for what you are not. - Andre Gide

Offline Bitbeisser

  • Global Moderator
  • Member
  • *****
  • Posts: 772
Re: QRC generator
« Reply #1 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

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: QRC generator
« Reply #2 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
May the source be with you

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2096
Re: QRC generator
« Reply #3 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
It is better to be hated for what you are than to be loved for what you are not. - Andre Gide