MSDN documentation for RegCopyTree states that ‘The calling process must have KEY_CREATE_SUB_KEY access to the destination key’, however call fails on some keys with Access denied error (5) on Windows 7 Ultimate 64-bit. Changing desired access rights to KEY_ALL_ACCESS solves the problem. Currently I do not know why, but it works in my case.
Category Archives: Programming
On production machine: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts.
I was helping my colleagues to debug one weird bug on ASP.NET 4.0 website. Everything worked well on developer’s machine, but after publishing to IIS 7.5 Windows 2008 R2 Webserver, we always got site partially working. Everything worked, except AJAX Control Toolkit controls. There were no any signs of errors. Ajax controls just were not …
Continue reading “On production machine: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts.”
C++ now allows to forward declare enum(s)
Thanks to recently approved standard (C++11 / C++0x), it is possible to forward declare enums. It was possible with classes for the long time, for example, “class MyClass;” in C++ [forward] declares class without providing underlying details. For enums it was not possible, because compiler needed to know exact size of the enum. Below are …
Continue reading “C++ now allows to forward declare enum(s)”