How do you add a data source dynamically as part of a setup program? I have purchased the ODBC SDK developers kit and am still confused. It appears to be some call to SQLConfigDataSource with DSN=??? and certain keywords. Anybody out there with experience or suggestions?
Example:
I have a Visual C++ exe that accesses the aw20.dbc VFP 3.0 database. I had to go to the 32bit ODBC administrator and add aw20 as a data source with Visual FoxPro as the driver before I could run my program and access the database. I want to be able to do that using the setup program or by calling SQLConfigDataSource so the end user doesn't have to mess with ODBC setup.
Thanks for any help. Don West.