Look up the Sqlite API. The sqlite3_column_text call does what you want.
sqlite3_open
sqlite3_prepare
loop
sqlite3_step
if SQLITE_ROW sqlite_column_text;
if SQLITE_DONE sqlite3_finalize; exit
repeat
sqlite3_close
Add your own error tests.
Severin Müller wrote:
Hey
Naw, the entire code doesn't work properly.
I just need something where i can save my query results in a string and return
the string...
-------- Original-Nachricht --------
Datum: Wed, 5 Sep 2007 08:30:12 -0400
Von: "Igor Tandetnik" <[EMAIL PROTECTED]>
An: "SQLite" <sqlite-users@sqlite.org>
Betreff: [sqlite] Re: C/C++ API
"Severin Müller" <[EMAIL PROTECTED]> wrote:
This won't work, because sUsername.assign... will not be accepted
with sqlite3_column_text, because sqlite_column_text if of type const
unsigned char...
Just cast it to const char*
Igor Tandetnik
-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------