hi, i´m a newbie in c-programming, but not a newbie in programming at all( i´m developing software with vb, java and turbo-pascal). now i´m working on a mysql-edit programm for gnome. os: linux (redhat 7.1) window-manager: gnome (1.4) here is my problem: i create a gnode-tree with the names of all databases on the mysql-server. after that i like to add all tables from the databases into the gnode-tree. i created a function which will return a MYSQL_RES with the table-names of a database. the name of the database is the parameter of the function. the type of the parameter is: gchar *sName. i´m using this function as follow: resTables = get_tables_to_db(ptr->data), ptr is declared as follow: GNode *ptr. after all, the function get_tables_to_db throws an error about an wrong database-name. in the gchar is the name of the database, but befor the name comes there are some trash char´s, so the database-gchar got following value: "ö q x databasename". but when i´m using the hole gnode-tree to init a gtkctree the database-names are spelled correct. i think i´m wrong in using the gchar-pointer. could any one help me.... thanks a lot, and sorry for my bad english. oliver k. |