Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Mute my application only.... not others running (windowxs xp...) Pin
Andrew Bleakley1-May-06 14:46
Andrew Bleakley1-May-06 14:46 
QuestionCWnd.RegEnumValue(HKEY...) Pin
oldmirco1-May-06 12:00
oldmirco1-May-06 12:00 
AnswerRe: CWnd.RegEnumValue(HKEY...) Pin
Ryan Binns1-May-06 14:06
Ryan Binns1-May-06 14:06 
AnswerRe: CWnd.RegEnumValue(HKEY...) Pin
Hamid_RT1-May-06 18:21
Hamid_RT1-May-06 18:21 
GeneralRe: CWnd.RegEnumValue(HKEY...) Pin
oldmirco2-May-06 15:47
oldmirco2-May-06 15:47 
GeneralRe: CWnd.RegEnumValue(HKEY...) Pin
Hamid_RT2-May-06 19:16
Hamid_RT2-May-06 19:16 
GeneralRe: CWnd.RegEnumValue(HKEY...) Pin
oldmirco3-May-06 6:36
oldmirco3-May-06 6:36 
AnswerRe: CWnd.RegEnumValue(HKEY...) Pin
Hamid_RT3-May-06 21:08
Hamid_RT3-May-06 21:08 
Hope I understood your question
I guess when I see RegEnumValue in title that you need to read value from keys
I find your problem you want run this way(I suggest) maybe you find a good way

...
...
... code is ok
//Look in HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default

then I suggest use this way
these keys are with subkey (example .Default with .Current and .Default

1- you want read first root that is HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default(RegOpenKeyEx)
then read first subkey with RegEnumKeyEx(.Default)

2-now you want concat root with current key

TCHAR test[256];
test[0]='\0';
strcat(test,"AppEvents\\Schemes\\Apps\\.Default");
strcat(test,"\\");
strcat(test,lpSubKey);//.Default

3-RegCloseKey(SoundsKey);

4-open new path with RegOpenKeyEx (test )

5-now you want subkeys from .Default that are .Default and .Current

6-RegCloseKey(SoundsKey);

7-now you need to loop for read subkeys from
HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\.Default that are two keys
and hold in one Array

now you want concat these subkeys with current path but first close RegCloseKey(SoundsKey);


in the loop
<br />
for(int i=0;i<m_Array.GetCount();i++)<br />
{<br />
CString str;<br />
str=m_Array.GetAt(i);<br />
now concat current path with current subkey that is <br />
strcat(HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\.Default\.Current<br />
<br />
and use RegEnumValue for read value that is one path .wav<br />
next key is .Default<br />
}<br />


maybe it is some helpful to you
AnswerRe: CWnd.RegEnumValue(HKEY...) Pin
David Crow2-May-06 3:16
David Crow2-May-06 3:16 
QuestionHow to prevent power off from the power button Pin
nadzzz1-May-06 11:12
nadzzz1-May-06 11:12 
AnswerRe: How to prevent power off from the power button Pin
Michael Dunn1-May-06 13:27
sitebuilderMichael Dunn1-May-06 13:27 
AnswerRe: How to prevent power off from the power button Pin
Hamid_RT1-May-06 18:16
Hamid_RT1-May-06 18:16 
QuestionFile operations in OO c++ Pin
peruv1-May-06 11:10
peruv1-May-06 11:10 
AnswerRe: File operations in OO c++ Pin
Joe Woodbury1-May-06 18:11
professionalJoe Woodbury1-May-06 18:11 
GeneralRe: File operations in OO c++ Pin
Maxwell Chen1-May-06 18:23
Maxwell Chen1-May-06 18:23 
AnswerRe: File operations in OO c++ Pin
oldmirco2-May-06 17:57
oldmirco2-May-06 17:57 
Questionpb with project wizard for DLL (VS6 / VS .NET 2003) Pin
Tnarol1-May-06 10:58
Tnarol1-May-06 10:58 
QuestionDDX_FieldText and CTime Pin
SwordeR1-May-06 10:53
SwordeR1-May-06 10:53 
AnswerRe: DDX_FieldText and CTime Pin
David Crow2-May-06 3:19
David Crow2-May-06 3:19 
GeneralRe: DDX_FieldText and CTime Pin
SwordeR2-May-06 10:06
SwordeR2-May-06 10:06 
QuestionDouble Manipulation Pin
Jader891-May-06 10:50
Jader891-May-06 10:50 
GeneralRe: Double Manipulation Pin
Jader891-May-06 11:13
Jader891-May-06 11:13 
GeneralRe: Double Manipulation Pin
Jörgen Sigvardsson1-May-06 11:37
Jörgen Sigvardsson1-May-06 11:37 
AnswerRe: Double Manipulation Pin
Stephen Hewitt1-May-06 13:43
Stephen Hewitt1-May-06 13:43 
AnswerRe: Double Manipulation Pin
Maxwell Chen1-May-06 22:19
Maxwell Chen1-May-06 22:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.