July 2001
Intermediate to advanced
656 pages
14h 22m
English
This control will show one table at a time. When given an SQL “select” string, it dynamically generates a CList widget. It is not completely independent of the current project, but it could be with a little work. The code for the DDC is in a separate file, called ddc.c (and, of course, ddc.h). Listing 9.1 is ddc.c .
#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <string.h> #include <gdk/gdkkeysyms.h> #include <gtk/gtk.h> #include <mysql.h> #include "callbacks.h" #include "interface.h" #include "support.h" #include "comm_utils.h" GtkWidget *frm_table_display; GtkWidget *create_ddc (gchar *table_name) ... |