Re: [sqlite] C++ API callback problem

2008-03-01 Thread Toby Roworth
Thanks Igor and Teg, I think I know were I was going wrong now. ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Re: [sqlite] C++ API callback problem

2008-03-01 Thread Igor Tandetnik
"Toby Roworth" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Looking at the API reference. it would apear you can send an extra > "custom" argument to the callback fro sqlite3_exec, using the 4th > parameter - how does this work, and inperticular, could I pass an > object through to

Re: [sqlite] C++ API callback problem

2008-03-01 Thread Teg
Hello Toby, You can pass in anything you want, a pointer, a number. As long as it fits in the native size of the parameter. You can pass the ADDRESS of an object as long as it doesn't go out of scope between the call and when the processing finishes. I tend to pass the "this" pointer to the class

[sqlite] C++ API callback problem

2008-03-01 Thread Toby Roworth
Hello all Looking at the API reference. it would apear you can send an extra "custom" argument to the callback fro sqlite3_exec, using the 4th parameter - how does this work, and inperticular, could I pass an object through to the call back, and if so, how? Thanks Toby