Hi all! I am looking for some advice on how to best design C++ programs that read, write, and update data in MySQL databases. I have completed a system that successfully does this but I'm not sure if I designed it the right way to take advantage of OOP principles and strengths. The system I have built was something I wanted to manage my collection of woodworking articles from various magazines collected over the years. I wanted to query into my collection by keywords for all articles that would help me with a current woodworking project. For example, I can …

Member Avatar
+0 forum 0

This is a request for some 'best practices' comments from experienced OOP practitioners. I have been in IT from the days of punched cards and have had considerable experience with legacy languages like 370 ASM, SAS, and REXX. For fun, I've taken a college class in C++ and am now working on a program for my personal use. I am building a program that will let me create, maintain, and search a database of articles from woodworking magazines and books I've gathered over the years. When I want to start a new project, I want to search this database for …

Member Avatar
Member Avatar
+0 forum 2

I am writing a GUI in GKTMM for my own learning experience and to use on a personal project I have at home. The data will be stored in a MySQL database on a server I already have running in my home and which I use for some PHP/JavaScript code that supports a 'library' application I wrote to keep track of the books my wife and I read. I have a working GUI program but need to tie it into MySQL. Should I use MySQL++ for this or one of the Gnome data access middleware systems (e.g., libgdamm)? What are …

Member Avatar
Member Avatar
+0 forum 1

I am learning to write C++ code to access data in a MySQL database. My goal is to use a separate class to control the database access so I can use this class elsewhere. To facilitate my learning, I'm working on simple code to connect to a database (success!) and return all rows in a simple and small table (failing!). The connection is OK through the class constructor but I'm getting a segmentation fault in the `queryResults = query.store()` in the class method. The backtrace, as I read it, says the failure is in a MySQL routine. (PS: The gtkmm.h …

Member Avatar
Member Avatar
+0 forum 1

I'm running OpenSUSE 10.3 on a server with SAMBA providing file and printer services to PCs in my house (XP & Linux). I have a CRON entry starting a PERL program I wrote to backup the shared SAMBA files and other data to DVD on a weekly basis. Currently the messages from this PERL program go to me via UNIX mail on that server. What do I need to do to get those messages sent to an Email account outside my home network? I'm not looking to put a full-function email server on this file server - I just want …

Member Avatar
Member Avatar
+0 forum 1

The End.