Click here to Skip to main content
15,848,261 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionEnvironment Variables Pin
jpyp15-Oct-08 12:47
jpyp15-Oct-08 12:47 
AnswerRe: Environment Variables Pin
Mark Salsbery15-Oct-08 14:30
Mark Salsbery15-Oct-08 14:30 
GeneralRe: Environment Variables Pin
jpyp16-Oct-08 9:26
jpyp16-Oct-08 9:26 
GeneralRe: Environment Variables [modified] Pin
Mark Salsbery16-Oct-08 10:11
Mark Salsbery16-Oct-08 10:11 
GeneralRe: Environment Variables Pin
jpyp16-Oct-08 11:15
jpyp16-Oct-08 11:15 
GeneralRe: Environment Variables [modified] Pin
Mark Salsbery16-Oct-08 11:27
Mark Salsbery16-Oct-08 11:27 
GeneralRe: Environment Variables Pin
jpyp16-Oct-08 11:52
jpyp16-Oct-08 11:52 
GeneralRe: Environment Variables Pin
Mark Salsbery16-Oct-08 12:03
Mark Salsbery16-Oct-08 12:03 
jpyp wrote:
As for the wrong data types, I took those directly from the MSDN library help page. Their data type are LPDWORD for the key type and key size fields.


Are you talking about the parameter types for the RegQueryValueEx() function?

If so, then yes, that is the type of variable that needs to be passed...
that doesn't necessarily mean your variables are supposed to be that type.

For example, a parameter with type LPDWORD - if you read the docs for
that parameter, you'll see wording like "A pointer to a variable that receives..."
or "A pointer to a variable that specifies...". That is NOT what you were passing Smile | :)

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionWeird error... Pin
Megidolaon15-Oct-08 12:08
Megidolaon15-Oct-08 12:08 
AnswerRe: Weird error... Pin
led mike15-Oct-08 12:32
led mike15-Oct-08 12:32 
GeneralRe: Weird error... Pin
Megidolaon15-Oct-08 12:37
Megidolaon15-Oct-08 12:37 
GeneralRe: Weird error... Pin
CPallini15-Oct-08 22:51
mveCPallini15-Oct-08 22:51 
QuestionRe: Weird error... Pin
David Crow15-Oct-08 18:29
David Crow15-Oct-08 18:29 
Questionautomatically click a button in another application Pin
Russell'15-Oct-08 10:34
Russell'15-Oct-08 10:34 
QuestionRe: automatically click a button in another application Pin
David Crow15-Oct-08 11:57
David Crow15-Oct-08 11:57 
AnswerRe: automatically click a button in another application Pin
Russell'15-Oct-08 12:28
Russell'15-Oct-08 12:28 
GeneralRe: automatically click a button in another application Pin
Russell'15-Oct-08 12:57
Russell'15-Oct-08 12:57 
QuestionSpin Control Pin
WayneK10015-Oct-08 10:03
WayneK10015-Oct-08 10:03 
AnswerRe: Spin Control Pin
David Crow15-Oct-08 11:58
David Crow15-Oct-08 11:58 
QuestionWhy the activex .ocx can't find msvcr80.dll & mfc80.dll even if I install the 2005 sp1 redist.exe ? Pin
oppstp15-Oct-08 8:11
oppstp15-Oct-08 8:11 
GeneralRe: Why the activex .ocx can't find msvcr80.dll & mfc80.dll even if I install the 2005 sp1 redist.exe ? Pin
oppstp16-Oct-08 1:07
oppstp16-Oct-08 1:07 
QuestionMFC App (Visual Studio 6) hangs when you click File, Open. Pin
Keith (MapMan)15-Oct-08 6:37
Keith (MapMan)15-Oct-08 6:37 
QuestionRe: MFC App (Visual Studio 6) hangs when you click File, Open. Pin
Mark Salsbery15-Oct-08 7:04
Mark Salsbery15-Oct-08 7:04 
AnswerRe: MFC App (Visual Studio 6) hangs when you click File, Open. Pin
Keith (MapMan)15-Oct-08 7:12
Keith (MapMan)15-Oct-08 7:12 
GeneralRe: MFC App (Visual Studio 6) hangs when you click File, Open. Pin
Mark Salsbery15-Oct-08 7:22
Mark Salsbery15-Oct-08 7:22 

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.