Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
Richard MacCutchan19-Jul-10 4:06
mveRichard MacCutchan19-Jul-10 4:06 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
msr_codeproject19-Jul-10 6:33
msr_codeproject19-Jul-10 6:33 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
David Crow19-Jul-10 10:18
David Crow19-Jul-10 10:18 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
Richard MacCutchan19-Jul-10 23:02
mveRichard MacCutchan19-Jul-10 23:02 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
MicroVirus20-Jul-10 2:20
MicroVirus20-Jul-10 2:20 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
Richard MacCutchan20-Jul-10 4:35
mveRichard MacCutchan20-Jul-10 4:35 
GeneralRe: Reading Windows Registry data in 64 bit operating system Pin
MicroVirus20-Jul-10 11:01
MicroVirus20-Jul-10 11:01 
AnswerRe: Reading Windows Registry data in 64 bit operating system Pin
Electron Shepherd19-Jul-10 13:17
Electron Shepherd19-Jul-10 13:17 
The last parameter is wrong. It needs to be a pointer to a DWORD that gives the size of the buffer, not the size of the buffer itself. Currently, your code is using the value of the memory at address 200 as the buffer size, and that could be anything...

Try:

DWORD cbSize = 200;

RegQueryValueEx(hKey, pszEntry, NULL, NULL, (LPBYTE)pData, &cbSize);


QuestionOpening Sound File Using PlaySound(); Pin
AmbiguousName18-Jul-10 21:21
AmbiguousName18-Jul-10 21:21 
AnswerRe: Opening Sound File Using PlaySound(); Pin
Code-o-mat18-Jul-10 21:35
Code-o-mat18-Jul-10 21:35 
GeneralRe: Opening Sound File Using PlaySound(); Pin
AmbiguousName18-Jul-10 21:41
AmbiguousName18-Jul-10 21:41 
GeneralRe: Opening Sound File Using PlaySound(); Pin
Code-o-mat18-Jul-10 21:51
Code-o-mat18-Jul-10 21:51 
GeneralRe: Opening Sound File Using PlaySound(); Pin
AmbiguousName18-Jul-10 22:07
AmbiguousName18-Jul-10 22:07 
GeneralRe: Opening Sound File Using PlaySound(); Pin
Code-o-mat18-Jul-10 22:08
Code-o-mat18-Jul-10 22:08 
AnswerRe: Opening Sound File Using PlaySound(); Pin
Shivanand Gupta18-Jul-10 23:57
Shivanand Gupta18-Jul-10 23:57 
QuestionSometimes Print and PrintPreview Function not responding in 64 bit PC. [modified] Pin
Le@rner18-Jul-10 19:36
Le@rner18-Jul-10 19:36 
QuestionNamed Pipes 2-way commication Pin
dene9997018-Jul-10 13:23
dene9997018-Jul-10 13:23 
AnswerRe: Named Pipes 2-way commication Pin
Luc Pattyn18-Jul-10 14:12
sitebuilderLuc Pattyn18-Jul-10 14:12 
AnswerRe: Named Pipes 2-way commication Pin
Chuck O'Toole18-Jul-10 18:20
Chuck O'Toole18-Jul-10 18:20 
AnswerRe: Named Pipes 2-way commication Pin
ThatsAlok18-Jul-10 20:47
ThatsAlok18-Jul-10 20:47 
AnswerRe: Named Pipes 2-way commication Pin
Moak18-Jul-10 23:43
Moak18-Jul-10 23:43 
QuestionRadio Button's Satus?? Pin
AmbiguousName18-Jul-10 4:01
AmbiguousName18-Jul-10 4:01 
AnswerRe: Radio Button's Satus?? Pin
Maximilien18-Jul-10 4:09
Maximilien18-Jul-10 4:09 
AnswerRe: Radio Button's Satus?? Pin
rp_suman18-Jul-10 8:31
rp_suman18-Jul-10 8:31 
GeneralRe: Radio Button's Satus?? Pin
Maximilien18-Jul-10 14:38
Maximilien18-Jul-10 14:38 

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.