Greetings!

I am using VS 2008 on a Windows 7 64-bit operating system.

I have written a helpful tool whose first step is to read a list of 32-bit ODBCs from the registry. In debug mode, it works fine. It reads the list from registry key "HKLM\Software\ODBC\ODBC.INI\ODBC Data Sources", and finds 17 of them. But when I build in release mode, the ODBC.INI key can be opened, but its ODBC Data Sources subkey cannot be opened. What's going on?

I don't have a simple snippet I can show you yet. I'll throw together a little test program in a moment.

I am running both versions by double-clicking on the exe file from Windows Explorer.

RobR