Click here to Skip to main content
15,921,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: fread crash Pin
Chris Losinger20-Jul-05 1:11
professionalChris Losinger20-Jul-05 1:11 
GeneralRe: fread crash Pin
sfeldi19-Jul-05 20:38
sfeldi19-Jul-05 20:38 
QuestionTextOut being clipped in Windows 2000? Pin
MacWarrior19-Jul-05 3:10
MacWarrior19-Jul-05 3:10 
AnswerRe: TextOut being clipped in Windows 2000? Pin
David Crow19-Jul-05 3:21
David Crow19-Jul-05 3:21 
GeneralReading REG_SZ from Win registry Pin
rudoq3219-Jul-05 3:09
rudoq3219-Jul-05 3:09 
GeneralRe: Reading REG_SZ from Win registry Pin
David Crow19-Jul-05 3:19
David Crow19-Jul-05 3:19 
GeneralRe: Reading REG_SZ from Win registry Pin
Blake Miller19-Jul-05 5:50
Blake Miller19-Jul-05 5:50 
GeneralRe: Reading REG_SZ from Win registry Pin
John R. Shaw20-Jul-05 9:53
John R. Shaw20-Jul-05 9:53 
In addition to what Blake Miller said, you also need to use the pdwCount value returned, to determine the actual length of the string. The reason for this is that you can not depend on the string returned to be null terminated. Some of the query functions do not return a null terminated string and others that are supposed to do not do so on all Windows OSs. One way to work around this problem is to initialize the receive buffer (szValue) to all 0's and call the query funtion specifing a dwCount that is slightly smaller than the actual buffer size.

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
QuestionHow to handle IE (ATL/COM/MFC) Pin
19-Jul-05 3:03
suss19-Jul-05 3:03 
GeneralInsert image or icon Pin
Halawlaws19-Jul-05 2:49
Halawlaws19-Jul-05 2:49 
GeneralRe: Insert image or icon Pin
David Crow19-Jul-05 2:55
David Crow19-Jul-05 2:55 
GeneralRe: Insert image or icon Pin
Halawlaws19-Jul-05 3:22
Halawlaws19-Jul-05 3:22 
GeneralRe: Insert image or icon Pin
David Crow19-Jul-05 3:27
David Crow19-Jul-05 3:27 
GeneralRe: Insert image or icon Pin
Halawlaws19-Jul-05 3:28
Halawlaws19-Jul-05 3:28 
GeneralRe: Insert image or icon Pin
David Crow19-Jul-05 5:30
David Crow19-Jul-05 5:30 
GeneralRe: Insert image or icon Pin
Halawlaws19-Jul-05 5:32
Halawlaws19-Jul-05 5:32 
GeneralRe: Insert image or icon Pin
David Crow19-Jul-05 5:38
David Crow19-Jul-05 5:38 
GeneralRe: Insert image or icon Pin
Halawlaws19-Jul-05 5:40
Halawlaws19-Jul-05 5:40 
GeneralRe: Change position Pin
Halawlaws19-Jul-05 5:51
Halawlaws19-Jul-05 5:51 
GeneralRe: Change position Pin
David Crow19-Jul-05 5:58
David Crow19-Jul-05 5:58 
GeneralRe: Change position Pin
Halawlaws19-Jul-05 6:00
Halawlaws19-Jul-05 6:00 
GeneralRe: Change position Pin
David Crow19-Jul-05 6:13
David Crow19-Jul-05 6:13 
GeneralRe: Change position Pin
Halawlaws19-Jul-05 6:01
Halawlaws19-Jul-05 6:01 
GeneralRe: Change position Pin
David Crow19-Jul-05 6:15
David Crow19-Jul-05 6:15 
GeneralRe: Change position Pin
Halawlaws19-Jul-05 20:19
Halawlaws19-Jul-05 20: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.