Hi,
Ill update the code with your suggestions.
+}
Can you call W variant from this one? Same for formatting, since it's a new piece it's an opportunity to clean up argument names.
Have you tested that both calls end up calling ConfigDSNW if it's available, instead of actually matching argument types and calling ConfigDSN or ConfigDSNW.
SQLConfigDataSource has the ability to call the either of the ConfigDSN functions. For example, mdac28 installer calls ConfigDSNW for the SQL driver, whereas the pgODBC driver only has the ConfigDSN export.
So, far I haven't found an installer that uses SQLConfigDataSourceW but I'm assuming that it will only use ConfigDSNW.
Alistair.