注册表访问(写访问) [英] Registry Access (Write Access)

查看:99
本文介绍了注册表访问(写访问)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MFC应用程序VC ++。NET 2003

我有一个特定的注册表项(HKCU \Software \ MyKey),其中包含30个&b
& 64个字符串值


我需要在那个

特定键下的所有30 - 64个字符串值写一个''*'。


例如:


HKCU \ Software \ MyKey


重点名称价值


MyKey1 http://www.somesite.com

MyKey2 http://www.someothersite.com


成为:


MyKey1 *

MyKey2 *

....


有什么想法吗?


搜索过Code Code&因为我多年后才重新开始使用C ++,所以不能让这些课程成为一个好头来




TIA

MFC Application VC++.NET 2003

I have a certain registry key (HKCU\Software\MyKey) that contains between 30
& 64 string values

I need to write a ''*'' to all those 30 - 64 string values under that
particular key.

Example:

HKCU\Software\MyKey

Key name Value

MyKey1 http://www.somesite.com
MyKey2 http://www.someothersite.com

Becomes:

MyKey1 *
MyKey2 *
....

Any ideas?

Have searched The Code Project & cannot make head not tail of these classes
as I am just starting back into C++ after many years

TIA

推荐答案

CRegKey是你的朋友。

http://msdn2.microsoft.com/en-us/lib...y4(VS.80).aspx


Brian


" Newbie Coder" < ne ********* @ spammeplease.com写信息

新闻:uW ************* @ TK2MSFTNGP06.phx.gbl .. 。
CRegKey is your friend.

http://msdn2.microsoft.com/en-us/lib...y4(VS.80).aspx

Brian

"Newbie Coder" <ne*********@spammeplease.comwrote in message
news:uW*************@TK2MSFTNGP06.phx.gbl...

MFC应用程序VC ++。NET 2003


我有一个注册表项(HKCU \Software \ MyKey)包含在

30

& 64个字符串值


我需要在那个

特定键下的所有30 - 64个字符串值写一个''*'。


例如:


HKCU \ Software \ MyKey


重点名称价值


MyKey1 http://www.somesite.com

MyKey2 http://www.someothersite.com


成为:


MyKey1 *

MyKey2 *

...

任何想法?


已搜索过Code Code&因为我多年后才重新开始使用C ++,所以不能让这些

课程成为现实。


TIA

MFC Application VC++.NET 2003

I have a certain registry key (HKCU\Software\MyKey) that contains between
30
& 64 string values

I need to write a ''*'' to all those 30 - 64 string values under that
particular key.

Example:

HKCU\Software\MyKey

Key name Value

MyKey1 http://www.somesite.com
MyKey2 http://www.someothersite.com

Becomes:

MyKey1 *
MyKey2 *
...

Any ideas?

Have searched The Code Project & cannot make head not tail of these
classes
as I am just starting back into C++ after many years

TIA



Bian,


首先感谢您的回复

页面说明了Framework 2。我不想使用框架

无论如何


还有其他任何建议吗?


" Brian穆斯" < bm *** @ mvps.org写信息

新闻:%2 **************** @ TK2MSFTNGP05.phx.gbl ...
Bian,

First of all thank you for your reply

The page says Framework 2 specific. I don''t want to use the framework
whatsoever

Any other suggestions?

"Brian Muth" <bm***@mvps.orgwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...

CRegKey是你的朋友。

http://msdn2.microsoft.com/en-us/lib...y4(VS.80).aspx


Brian


" Newbie Coder" < ne ********* @ spammeplease.com写信息

新闻:uW ************* @ TK2MSFTNGP06.phx.gbl .. 。
CRegKey is your friend.

http://msdn2.microsoft.com/en-us/lib...y4(VS.80).aspx

Brian

"Newbie Coder" <ne*********@spammeplease.comwrote in message
news:uW*************@TK2MSFTNGP06.phx.gbl...

MFC应用程序VC ++。NET 2003


我有一个注册表项(HKCU \Software \ MyKey)包含
MFC Application VC++.NET 2003

I have a certain registry key (HKCU\Software\MyKey) that contains




之间

between


30

& 64个字符串值


我需要在那个

特定键下的所有30 - 64个字符串值写一个''*'。


例如:


HKCU \ Software \ MyKey


重点名称价值


MyKey1 http://www.somesite.com

MyKey2 http://www.someothersite.com


成为:


MyKey1 *

MyKey2 *

...

任何想法?


已搜索过Code Code&因为我多年后才重新开始使用C ++,所以不能让这些

课程成为现实。


TIA
30
& 64 string values

I need to write a ''*'' to all those 30 - 64 string values under that
particular key.

Example:

HKCU\Software\MyKey

Key name Value

MyKey1 http://www.somesite.com
MyKey2 http://www.someothersite.com

Becomes:

MyKey1 *
MyKey2 *
...

Any ideas?

Have searched The Code Project & cannot make head not tail of these
classes
as I am just starting back into C++ after many years

TIA






" Newbie Coder" < ne ********* @ spammeplease.com写信息

新闻:eM ************** @ TK2MSFTNGP02.phx.gbl。 ..

"Newbie Coder" <ne*********@spammeplease.comwrote in message
news:eM**************@TK2MSFTNGP02.phx.gbl...

Bian,


首先感谢您的回复


该页面特定于Framework 2。我不想使用框架

无论如何


还有其他任何建议吗?
Bian,

First of all thank you for your reply

The page says Framework 2 specific. I don''t want to use the framework
whatsoever

Any other suggestions?



使用Visual Studio .NET 2003,创建您选择的C ++项目,使用

care来检查对ATL的支持。复选框。您可以正常使用CRegKey。

它不依赖于.NET Framework 1.1。或2.0。


Brian。

Using Visual Studio .NET 2003, create the C++ project of your choice, taking
care to check the "support for ATL" checkbox. You can use CRegKey just fine.
It does not depend on .NET Framework 1.1. or 2.0.

Brian.


这篇关于注册表访问(写访问)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆