[prev in list] [next in list] [prev in thread] [next in thread]
List: mysql-plusplus
Subject: Question with the MySQL++ RESULT CLASS
From: root <root () localhost ! localdomain>
Date: 2002-03-09 23:15:08
[Download RAW message or body]
The following works
Just pass a reference and modify it in the function. Pointers!
It's not complete but you get the idea
void
myquery(Result *resp)
{
Connection con(use_exceptions);
con.connect(...);
Query q = con.query();
query << "select * from mytable";
*resp = query.store();
}
int main()
{
Result res;
Result::iterator i;
myquery(&res);
i = res.begin();
...
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic