Populates a StringArray (or vector<string>) containing the names of ODBC datasources. Optionally populates a StringArray (or vector<string>) containing the names of ODBC drivers associated with the datasources. Returns number of drivers found.
int okutil_get_ODBC_data_sources(StringArray* psaDataSources, StringArray* psaDrivers = NULL);
Number of drivers found.
EX1
#include <Origin.h> #include <outils.h> void dump_datasources() { vector<string> vs1, vs2; int num = okutil_get_ODBC_data_sources(&vs1, &vs2); for (int i = 0; i < num; i++) { printf("%s\t%s\n", vs1[i], vs2[i]); } }
origin.h
outils.h