VC++6的设置保存在哪个文件里?

long33 2006-09-27 09:00:42
我想把自定义的设置(如字体,颜色)保存下来,不然每次装都要改一次设置太麻烦了。它应该有一个文件保存的,不知是什么文件?在哪里可以找得到?
...全文
228 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
long33 2006-09-27
  • 打赏
  • 举报
回复
谢谢,知道了。
Elysium 2006-09-27
  • 打赏
  • 举报
回复
How to move Visual C++ IDE customizations to another computer
View products that this article applies to.
Article ID : 247005
Last Review : June 2, 2005
Revision : 3.0
This article was previously published under Q247005
IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 (http://support.microsoft.com/kb/256986/EN-US/) Description of the Microsoft Windows Registry
On This Page

SUMMARY

MORE INFORMATION

Visual C++ registry keys

Export and Import registry keys

REFERENCES
SUMMARY
The Visual C++ Integrated Development Environment (IDE) settings are stored in the following registry key: HKEY_CURRENT_USER\Software\Microsoft\DevStudio\x.0

Where x.0 denotes the version number of the VC++ installation.

When you customize the Visual C++ IDE and quit from Visual C++, this key is updated. The next time Visual C++ is started this key will be queried and the changes will be reflected in the IDE. The "More Information" section discusses the specific keys that are used to store the Visual C++ IDE settings and the steps involved in moving those registry values to another computer.
Back to the top

MORE INFORMATION
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To move Visual C++ customizations from one Visual C++ installation to another, you will have to export and import all or some of the registry keys mentioned in the "Visual C++ registry keys" section. This section doesn't cover all the Visual C++ keys. If you want your new Visual C++ install to be identical your current install then export and import the entire HKEY_CURRENT_USER\Software\Microsoft\DevStudio\x.0 registry key. See the "Export and Import registry keys" section on exporting and importing these keys.

The only difference between the key names in Visual C++ versions 5.0 and 6.0 is the version number in the name. For Visual C++ 5.0, the keys you are looking for are all sub keys of: HKEY_CURRENT_USER\Software\Microsoft\DevStudio\5.0

and for Visual C++ 6.0: HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0

Not all of these keys will be present on every system, some of the keys are created when you customize specific IDE settings. If you are upgrading from Visual C++ 5.0 to Visual C++ 6.0, the Visual C++ setup program asks you if you'd like to move your customizations to the new installation. The procedures outlined in this article assumes that you have made no customizations to the new installation of Visual C++. If customizations have been made to the new installation, it is possible that the customizations will be lost when importing from the customized computer.
Back to the top

Visual C++ registry keys
• Format

The Format key contains the settings for the custom colors and fonts used for the various windows that Visual C++ supports. You can get to this setting in Visual C++ by selecting the Tools menu, clicking Options, then selecting the Format tab.

For Visual C++ 5.0 the key is: HKEY_CURRENT_USER\Software\Microsoft\DevStudio\5.0\Format

For Visual C++ 6.0 the key is: HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format


• Layout

The Layout key contains information on the custom menus, toolbars, and command buttons. It's the same as the preceding key except you replace Format with Layout.

NOTE: The locations of these controls on the screen could be different, depending on the screen resolution.


• TextEditor

The Text Editor key has information on the tab settings for different file types and some advanced settings. You can get to this setting in Visual C++ by selecting the Tools menu, clicking Options, then selecting the Tabs tab.


• Tools

The Tools key contains information on the Tools menu item, including all the default tools that come with Visual C++ and the tools you have added, along with their absolute paths. You may have to update these paths correctly on the new computer.


• General

The General key mainly contains information on controlling the Window menu and ToolTips.


• Graphics Editor

The Graphics Editor key contains information on screen color.
NOTE: Some keys store absolute path information. Make sure these paths are right for your new installation or Visual C++ won't behave as expected.
Back to the top

Export and Import registry keys
Use the following steps to export a registry key:
1. Start the registry editor Regedit.exe.
2. Navigate to the key that you want to export, for example select: HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Format


3. Select Export Registry File from the Registry menu.
4. Specify a file name in the "Export Registry File" dialog box. The default extension for the file is REG.
Follow the steps below to import a registry key:
1. Copy the exported registry file to the target computer.
2. Start the registry editor Regedit.exe.
3. Select Import Registry File from the Registry menu.
4. Browse for the file copied in step 1 from the "Import Registry File" dialog box. On clicking Open, the Registry Editor message box displays whether the operation was successful or not.
You can avoid the above steps by double clicking on the REG file in Windows Explorer. This works as long as the .reg extension is a registered shell extension.

NOTE: Make sure that you have permissions to update the registry.
long33 2006-09-27
  • 打赏
  • 举报
回复
楼上这位朋友,我打不开网页,你能贴出来或者简要的概述一下吗?谢谢
Elysium 2006-09-27
  • 打赏
  • 举报
回复
如何将自定义 Visual C++ IDE 移动到其他计算机
http://support.microsoft.com/default.aspx?scid=kb%3Bzh-cn%3B247005
ChinaCup 2006-09-27
  • 打赏
  • 举报
回复
导出注册表

16,548

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • AIGC Browser
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧