Zoomba Posted September 7, 2009 Share Posted September 7, 2009 Hello all I'm trying to get the System DSN's list (from ODBC) into a combo dialog As the user I want to select the DSN he wants and click OK -> which will result in an output for my script Was hoping som1 already has a piece of code that does something like that Thanx Link to comment Share on other sites More sharing options...
99ojo Posted September 7, 2009 Share Posted September 7, 2009 (edited) Hello allI'm trying to get the System DSN's list (from ODBC) into a combo dialogAs the user I want to select the DSN he wants and click OK -> which will result in an output for my scriptWas hoping som1 already has a piece of code that does something like that Thanx Hi,not a piece of code, but i think easy to start with.You have to read values from registry. Have a look at functions RegEnumVal, RegRead and _GuiCtrlComboBoxAddString.The System DSN are stored in HKLM\Software\ODBC\ODBC.INI\ODBC Data Sources.If you have problems come back and may post some code.;-))Stefan Edited September 7, 2009 by 99ojo Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now