In this article we've seen how easy it is to add MySQL support into our C/C++ applications. I've used Visual C++ to demonstrate our examples, however most C++ compilers including Borland's C++ builder and Unix's gcc/g++ compilers will also work fine, requiring only slight modifications to the way header files are included, include paths, etc.
On a little side note, everything we've seen in this article can easily be adapted to make a CGI application -- the only fundamental difference would be in the way that you accept user input. All of the code (with the exception the input and the system() function) will work in a CGI application without any changes.
Finally, here's a short list of additional MySQL++ functions that you might find useful in your MySQL++ coding adventures:
For a complete listing of all MySQL++ functions, take a look at the documentation that accompanies the MySQL++ download.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |