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).