I need a C++ DLL created that will have a single method that takes a string and returns a QR Code that contains the String.
The method needs to take a string and the size of the code in Pixels.
As an example I would call the Method with "Hello World", 5 and a code would be generated that looks as follows:
Note the Z in the middle of the code. That needs to be on every code generated by the dll and must resize with the code generated.
Hi Mark,
Could you please elaborate on the following questions?
Thank you!
CodersClan Team.
1) Do you need the actual source code or just the DLL?
The actual code and a compiled DLL
2) How would you like the code to be outputted? In what format?
.PNG format please
3) Would you like this exact "Z" logo, as shown in the picture to be rendered on top of the code? If so can you please add a link to its file?
Yes please
4) On what operating system would the code run?
Windows 7 and 8
5) Are external libraries allowed? For example this one - http://fukuchi.org/works/qrencode/
Yes, no problem.
Thanks,
Mark
I have it done and working here: http://haikarainen.1.ai/strtoqr.zip
Proof that it's working: http://haikarainen.1.ai/generatedqrcode.png
The above image was generated with a simple line of code:
StrToQr("This is now encoded", 64);
The method is defined as follows:
std::string DLL_EXPORT StrToQr(const std::string &toEncode, unsigned int square_size);
Where toEncode is the string to encode, square_size is the width (and height) of the final image, and it returns the filename of the image (which is currently hardcoded to generatedqrcode.png)
logo.png needs to be accessible from the linking application at runtime.
Forgot to mention it depends on http://fukuchi.org/works/qrencode/ and SFML, the DLL is compiled with mingw32-gcc 4.8.1 but it should compile fine under visual studio as well.
Congratulations!
Now that your task is posted let the world know
Make your task famous