|
-
June 29th, 2012, 02:39 PM
#1
Registry can be read in debug, not in release
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|