Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
compiler plugin works only with admin rights
mariocup:
Hi,
in the compilers Cygwin, GDC, MINGW, MSVC, MSVC8, SDCC 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:
--- Code: --- 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);
}
}
--- End code ---
rickg22:
Have you reported that in berlios yet?
mariocup:
Hi rickg22,
no, I found the problem right now with my PC and Browse Tracks Plugin. Shall I open a bug in berlios for it?
rickg22:
Yes, please. Otherwise the bugs get lost in this forum jungle.
MortenMacFly:
I can't really reproduce it. I'm running C::B always from a restricted user account (as I am always a restricted user). Not even Power User, just user. It works very well...?!
Navigation
[0] Message Index
[#] Next page
Go to full version