Click here to Skip to main content
15,890,506 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How could I show the time in View Pin
Aneesh Valeri27-Jul-06 17:47
Aneesh Valeri27-Jul-06 17:47 
AnswerRe: How could I show the time in View Pin
Parthi_Appu27-Jul-06 19:45
Parthi_Appu27-Jul-06 19:45 
QuestionMacro Pin
Hing27-Jul-06 16:10
Hing27-Jul-06 16:10 
AnswerRe: Macro Pin
Hing27-Jul-06 16:24
Hing27-Jul-06 16:24 
QuestionWM_DROPFILES for individual control... Pin
Nitron27-Jul-06 11:08
Nitron27-Jul-06 11:08 
AnswerRe: WM_DROPFILES for individual control... Pin
led mike27-Jul-06 11:43
led mike27-Jul-06 11:43 
GeneralRe: WM_DROPFILES for individual control... Pin
Nitron27-Jul-06 18:18
Nitron27-Jul-06 18:18 
QuestionReadinf From The Registry [modified] Pin
Semion_N27-Jul-06 9:43
Semion_N27-Jul-06 9:43 
Hello,
I'm trying to read from the registry a value from a key, but I don't understand some parameters from the reading function.
here is a piece of code:
<br />
CRegKey key;<br />
key.Open(HKEY_LOCAL_MACHINE,"Software\\MyProject\\key");<br />
key.SetStringValue("TRUE","TRUE");<br />
if (key.QueryStringValue(?,?,?)=="TRUE") MessageBox("TRUE");<br />

I dont understand the parameters within the QueryStringValue( )
Can you please explain for me what this parameters do and what values for instance I can set to the parameters?

Another problem:
Every time I execute the program I'm getting an assertation that m_hKey ! = 0
I tried to remove the ASSERT line:
<br />
ATLASSERT(m_hKey != NULL);<br />

but it still stops at the line of this assert and gives me the assertation although I removed it.
why?
and how can I remove it for real?

Thanking you in advance!



-- modified at 15:45 Thursday 27th July, 2006
AnswerRe: Readinf From The Registry [modified] Pin
PJ Arends27-Jul-06 10:13
professionalPJ Arends27-Jul-06 10:13 
GeneralRe: Readinf From The Registry Pin
Semion_N28-Jul-06 9:47
Semion_N28-Jul-06 9:47 
GeneralRe: Readinf From The Registry Pin
PJ Arends31-Jul-06 10:38
professionalPJ Arends31-Jul-06 10:38 
Questionparameter question Pin
Jay0327-Jul-06 9:41
Jay0327-Jul-06 9:41 
AnswerRe: parameter question Pin
valikac27-Jul-06 10:09
valikac27-Jul-06 10:09 
GeneralRe: parameter question Pin
Jay0327-Jul-06 10:29
Jay0327-Jul-06 10:29 
GeneralRe: parameter question Pin
Alex_Y27-Jul-06 11:34
Alex_Y27-Jul-06 11:34 
QuestionRe: parameter question Pin
Alex_Y27-Jul-06 10:31
Alex_Y27-Jul-06 10:31 
AnswerRe: parameter question Pin
Jay0327-Jul-06 10:41
Jay0327-Jul-06 10:41 
AnswerRe: parameter question Pin
David Crow27-Jul-06 10:53
David Crow27-Jul-06 10:53 
GeneralRe: parameter question Pin
Alex_Y27-Jul-06 11:31
Alex_Y27-Jul-06 11:31 
AnswerRe: parameter question Pin
Christian Graus27-Jul-06 11:16
protectorChristian Graus27-Jul-06 11:16 
GeneralRe: parameter question Pin
Jay0328-Jul-06 5:53
Jay0328-Jul-06 5:53 
GeneralRe: parameter question Pin
Christian Graus28-Jul-06 10:45
protectorChristian Graus28-Jul-06 10:45 
GeneralRe: parameter question Pin
Jay0328-Jul-06 7:07
Jay0328-Jul-06 7:07 
AnswerRe: parameter question Pin
toxcct27-Jul-06 21:34
toxcct27-Jul-06 21:34 
GeneralRe: parameter question Pin
Jay0328-Jul-06 7:00
Jay0328-Jul-06 7:00 

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.