Bug #11600 2007-07-21 10:34
mariocupelli
compiler plugin works only with admin rights
In the sources of cb for Cygwin, GDC, MINGW, MSVC, MSVC8, SDCC compiler, the registry is read with key.Open() in read/write mode. This works only with admin rights for users under windows, otherwise you get an error.
So the registry should be opened in read mode with key.Open(wxRegKey::Read):
Example how it should look like:
wxRegKey key; // defaults to HKCR
key.SetName(_T("HKEY_LOCAL_MACHINE\\Software\\Name\\"));
if (key.Exists() && key.Open(wxRegKey::Read))
{
// found; read it
if (key.HasValue(_T("InstallPath")))
{
key.QueryValue(_T("InstallPath"), m_MasterPath);
}
}
- Category
- Compiler
- Group
- Status
- Closed
- Close date
- 2007-07-29 11:01
- Assigned to
- biplab
History
biplab 2007-07-29 11:01
This bug is now fixed in HEAD.
Thank you for reporting it.