Re: [sqlite] C/C++ API

2007-09-05 Thread Severin Müller
to call another function? Does somebody have another good example for this? Original-Nachricht > Datum: Wed, 05 Sep 2007 12:13:25 +0200 > Von: "Daniel Önnerby" <[EMAIL PROTECTED]> > An: sqlite-users@sqlite.org > Betreff: Re: [sqlite] C/C++ API &g

Re: [sqlite] C/C++ API

2007-09-05 Thread Daniel Önnerby
This code is totaly untested. But something like this: std::string sUsername; sqlite3 *db; if( sqlite3_open("db/users.db",) ){ // prepare the statement sqlite3_stmt *oStmt; if( sqlite3_prepare_v2(db,"SELECT username FROM users WHERE

Re: [sqlite] C/C++ API

2007-09-05 Thread nishit sharma
hi, in sqlite3 u r having a function named callback whose third argument is used to save the value of a column. u can store that value in an array or in char vairiable also. try this regards Nishit On 9/5/07, "Severin Müller" <[EMAIL PROTECTED]> wrote: > > Hi > > I'm new to sqlite3, and i' have

[sqlite] C/C++ API

2007-09-05 Thread Severin Müller
Hi I'm new to sqlite3, and i' have some Problems with my code. I'm trying to select data from a table and to save the result in a string. but i have no clue how to accomplish this. Here is a part of my code: std::string get_user_info(const char* nick,int mode) { #ifdef _WIN32 const