Article ID: 217182 - Last Review: September 1, 2005 - Revision: 4.0 Descriptions are not added to the registry when using the DECLARE_REGISTRY() macroThis article was previously published under Q217182 SYMPTOMS
The DECLARE_REGISTRY() macro in ATL allows you to pass a string resource ID, which serves as a description and is supposed to be added to the registry as default values for the following keys: HKCR\<ProgID> HKCR\<Version Independent ProgID> HKCR\CLSID\<CLSID> CAUSE
CComModule::RegisterProgID() and CComModule::RegisterClassHelper() are used with the DECLARE_REGISTRY() macro. Both functions create registry keys with only the KEY_READ flag, allowing only read access.
RESOLUTION
Modify CComModule::RegisterProgID() and CComModule::RegisterClassHelper() so that the calls to CRegKey::Create() take KEY_READ|KEY_WRITE instead of just KEY_READ. Modify the following lines from: STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.
This bug was corrected in Visual Studio 6.0 Service Pack 3.
REFERENCES
For more information about Visual Studio service packs, click the following article number to view the article in the Microsoft Knowledge Base:
194022
(http://support.microsoft.com/kb/194022/
)
Visual Studio 6.0 service packs, what, where, why
194295
(http://support.microsoft.com/kb/194295/
)
How to tell that a Visual Studio service pack is installed
| Article Translations
|
Back to the top
