VC6的Profile是一个很有用的功能。可是你可能发现Profile菜单总是灰的,处于被禁用状态,不管是否打开了相关的编译选项。有时重装VC会恢复可用。你也可能发现其实该菜单仅在某一用户下可用,其它用户是灰的,可用的用户就是安装VC的用户。
这是VC6的一个错误,修正它很容易,添加一个REG_DWORD注册表项值:
HKEY_LOCAL_MACHINE/Software/Microsoft/DevStudio/6.0/General/ProfilerInstalled = 0x1
参见: The Profile menu option under the Build menu is disabled when you try to use Visual C++ 6.0 in a Windows NT account
(转载请注明来源于 金庆的专栏)