2.1.25.53 okutil_get_installed_ODBC_driver


Description

Populates a StringArray (or vector<string>) containing the names of installed ODBC drivers. Returns number of drivers found.

Syntax

int okutil_get_installed_ODBC_drivers(StringArray* psaDrivers);

Parameters

psaDrivers
[output]pointer to a StringArray (or vector<string>) to populate with driver names.


Return

Number of drivers found.

Examples

EX1

#include <Origin.h>
#include <outils.h>

void dump_drivers()
{
	vector<string> vs;
	int num = okutil_get_installed_ODBC_drivers(&vs);
	for (int i = 0; i < num; i++)
	{
		printf("%s\n", vs[i]);
	}
}

Remark

See Also

Header to Include

origin.h

outils.h

Reference