sqlite and gtk
- From: frederico schardong <frede sch gmail com>
- To: gtk-list gnome org
- Subject: sqlite and gtk
- Date: Wed, 13 May 2009 15:03:17 -0300
Hi,
I'm writing a simple application, and it use sqlite. Sometime I use:
gint linhas, colunas;
gchar *erro;
gchar **resultTable;
if(sqlite3_get_table(db, "SELECT user FROM pnt_user;", &resultTable,
&linhas, &colunas, &erro) != SQLITE_OK)
{
exit(0);
}
g_print("\nValue: %s",resultTable);
---------
This is showed on terminal:
Value: `�� ��� U[`{U[`{I^C
But every time this routine is called, a different thing is showed..
but never what is in the table.
Can anyone help me?
--
Abraço,
Frederico Schardong,
SOLIS - O lado livre da tecnologia
www.solis.coop.br
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]