Re: [sqlite] C++ API: Retrieve multiple rows into struct, using callback

2005-08-29 Thread Jay Sprenkle
On 8/26/05, Keith Herold <[EMAIL PROTECTED]> wrote: > > It's not too hard. > > Instantiante a static class method that matches the sqlite callback > signature. Yes, I've done it before, and as your instructions show there's a lot of "fooling about" to get it done. If you use sqlite_step(), w

Re: [sqlite] C++ API: Retrieve multiple rows into struct, using callback

2005-08-26 Thread Keith Herold
It's not too hard. Instantiante a static class method that matches the sqlite callback signature. When you register the callback with sqlite, you'll want to pass in the this pointer to the instantiated class. Within the static class method, cast the void pointer back to the instantiated class,

Re: [sqlite] C++ API: Retrieve multiple rows into struct, using callback

2005-08-26 Thread Jay Sprenkle
On 8/26/05, Cam Crews <[EMAIL PROTECTED]> wrote: > Hi. I'm new to sqlite and would like to use the sqlite C++ API to > return multiple rows from a SELECT statement. I'm able to load a > single row's result into a struct & pass it back by reference through > the callback, but haven't been able to

[sqlite] C++ API: Retrieve multiple rows into struct, using callback

2005-08-26 Thread Cam Crews
Hi. I'm new to sqlite and would like to use the sqlite C++ API to return multiple rows from a SELECT statement. I'm able to load a single row's result into a struct & pass it back by reference through the callback, but haven't been able to find any resources recommending a method for returning *m