Re: [sqlite] Sqlite callback in a class. Class-member error.

2005-03-23 Thread Clay Dowling
aleks ponjavic said: > Unfortunately I'm not able to grasp the new functions, I've read through > http://www.sqlite.org/capi3.html but I can't picture how I would set up > these functions. Is there an updated sample or tutorial? Or could someone > explain the basic routine for extracting the

Re: [sqlite] Sqlite callback in a class. Class-member error.

2005-03-23 Thread Jay
> Unfortunately I'm not able to grasp the new functions, I've read > through > http://www.sqlite.org/capi3.html but I can't picture how I would set > up > these functions. Is there an updated sample or tutorial? Or could > someone > explain the basic routine for extracting the

Re: [sqlite] Sqlite callback in a class. Class-member error.

2005-03-23 Thread aleks ponjavic
Unfortunately I'm not able to grasp the new functions, I've read through http://www.sqlite.org/capi3.html but I can't picture how I would set up these functions. Is there an updated sample or tutorial? Or could someone explain the basic routine for extracting the columnnames/amount of

Re: [sqlite] Sqlite callback in a class. Class-member error.

2005-03-23 Thread aleks ponjavic
Thank you, I will look in to it! _ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

Re: [sqlite] Sqlite callback in a class. Class-member error.

2005-03-23 Thread Jay
The exec() function, the one that uses callbacks, is deprecated. You should use the prepare, bind, step routines: sqlite3_prepare(), sqlite3_bind_text(), sqlite3_step() The nice side effect is you don't have to use globals, callbacks, or the goofy work around for the 'this' pointer in your

[sqlite] Sqlite callback in a class. Class-member error.

2005-03-23 Thread aleks ponjavic
I was using global variables to transfer data from the callback to my class, but now I need this function in two classes. Thus the global variables collide causing a multiple defintion, therefore I'm trying to wrap the callback into my class. int MyFrame::callback(void *NotUsed, int argc, char