请问SetRegistryKey这个函数有什么用处
解决方案 »
- bitblt,StretchBlt的问题
- 如何才能编写出漂亮的界面,需要具备哪些知识啊!
- 关于智能指针计数的问题
- 在 PICTURE 空间里 浏览 JPG 切换到其他 程序 在 回来 图片就没了。如何解决
- 请问如何设置SendRequest的超时啊?在DLL里响应不到啊?(急)
- 如何把图片数据转化成Base64数据格式?
- 如何将WDL文件转换回文本文件呢?有现成的工具么?如果想编程实现帮忙给个思路。
- 面对现在的编程语言vc天地有多宽,请诸位大师给我一点灯光!哪怕是依稀的!
- 我有一问题我在CCOMBO控件中列入一组字符串,关机后却再开机CCOMBO中没有了,怎么样使再开机还有
- 如何隐藏窗口于屏幕边角,当鼠标经过屏幕边角时,窗口自动显示出来?
- 我这段代码出什么错了?怎么也显示不了图片!急死我了:(在线等(关于CListCtrl)
- 怎么贴图到界面上呀?
void SetRegistryKey( LPCTSTR lpszRegistryKey );
void SetRegistryKey( UINT nIDRegistryKey );Parameters
lpszRegistryKey
Pointer to a string containing the name of the key.nIDRegistryKey
ID/index of a key in the registry.Res
Causes application settings to be stored in the registry instead of INI files. This function sets m_pszRegistryKey, which is then used by the GetProfileInt, GetProfileString, WriteProfileInt, and WriteProfileString member functions of CWinApp. If this function has been called, the list of most recently-used (MRU) files is also stored in the registry. The registry key is usually the name of a company. It is stored in a key of the following form: HKEY_CURRENT_USER\Software\<company name>\<application name>\<section name>\<value name>.翻译过来大概意思就是说使程序的配置保存在注册表的指定键里,为GetProfileString, WriteProfileInt, WriteProfileString这三个CWinApp的成员函数提供位置。例如在App的InitInstance里加了SetRegistryKey("MyArena"),
WriteProfileString, GetProfileString等就会从HKEY_CURRENT_USER\Software\MyArena下读写。