Jump to content
Sign in to follow this  
Zoomba

ODBC list selection

Recommended Posts

Zoomba

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 :D

Thanx :D

Share this post


Link to post
Share on other sites
99ojo

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 :D

Thanx :D

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 by 99ojo

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.