[unixODBC-support] Porblems configuring DSN

Cristiano cristiano at brasmap.com.br
Thu Jul 15 20:05:25 BST 2004


Hi,

I'm using unixODBC 2.2.3.

I'm writing an app to change some info of DSN's on both Windows and Linux.
The following code works fine on Windows (XP and 98SE), but in Linux (gcc 2.95.3) it gives me the error: General installer error

I've tried to run it as root and change the odbc.ini permission, but it didn't work.

Does anybody can gimme a hint.

Code:
-------------
	char    szError[ODBC_CONFIG_DRIVER_MAX+1];
	DWORD   nError;
	if(!SQLConfigDataSource(NULL,ODBC_CONFIG_SYS_DSN,"MySQL","DSN=VISUALIZACAO\0DESCRIPTION=somedesc\0\0")) {
		SQLInstallerError( 1, &nError, szError, ODBC_CONFIG_DRIVER_MAX, NULL );
		printf("%s\n",szError);
	}
-------------

-- 
#################################
# Cristiano Costa Neves
# AQX Instrumentação.
# Engenharia em Aquisição de Dados
# Site: www.aqx.com.br
# Email: info at aqx.com.br
# Fone: (48) 2107-2724
# Fax: (48) 333-3745
#################################


-- 
#################################
# Cristiano Costa Neves
# AQX Instrumentação.
# Engenharia em Aquisição de Dados
# Site: www.aqx.com.br
# Email: info at aqx.com.br
# Fone: (48) 2107-2724
# Fax: (48) 333-3745
#################################





More information about the unixODBC-support mailing list