Thank you. That will be extremely helpful.
>Hi Chris, In my particular situation I have code embedded in my application to handle that, I checked for the existence of the DSN and if it doesn't exists I create it on the fly. You can use RegCreateKeyEX or RegCreateKey to create it, see:
>
http://msdn2.microsoft.com/en-us/library/ms724842.aspx>
>And RegOpenKey to see if the DSN exists, see:
>
http://msdn2.microsoft.com/en-us/library/ms724897.aspx>
>One way to learn this is by creating a DSN manually, look at it in the
>registry and then make changes to the DSN or delete it and see how the registry changed. Let me know if you need further help.
Chris McCandless
Red Sky Software