Posted By: NeoNeper
return vector<string> from C++ DLL, HOW? - 05/15/13 22:11
HELLO BROTHERS.
partial code on C++
Ok. But I need to change this looping for liteC.
that way I can capture this vector return ?
partial code on C++
Code:
... vector<vector<string> > result = db->query("SELECT a, b FROM a;"); for(vector<vector<string> >::iterator it = result.begin(); it < result.end(); ++it) { vector<string> row = *it; cout << "Values: (A=" << row.at(0) << ", B=" << row.at(1) << ")" << endl; }
Ok. But I need to change this looping for liteC.
Code:
vector<vector<string> > result; DLLFUNC void* sqlte3_feetArray() { //Simple sample result = db->query("SELECT a, b FROM a;"); return &result; }
that way I can capture this vector return ?