Lance Johnson
3/13/2002 8:44:00 PM
I haven't found a way to add/remove dsn connections without using this
function, so my question is whether or not anybody has used this. Here's
the way I declared it:
[DllImport("ODBCCP32.DLL")]
public static extern long SQLConfigDataSource( long hwndParent, long
fRequest, string lpszDriver, string lpszAttributes);
I can't seem to get the first parameter in the function call correct. When
I pass it 0 ( for current process) it throws a null exception. Anybody got
any ideas on this one?
Lance Johnson
DOCS, Inc.