Click here to Skip to main content
15,881,852 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Why are my articles been deleted? Pin
jeron120-Mar-09 7:26
jeron120-Mar-09 7:26 
AnswerRe: Why are my articles been deleted? Pin
Anna-Jayne Metcalfe20-Mar-09 7:30
Anna-Jayne Metcalfe20-Mar-09 7:30 
AnswerRe: Why are my articles been deleted? Pin
Cedric Moonen20-Mar-09 8:18
Cedric Moonen20-Mar-09 8:18 
AnswerRe: Why are my articles been deleted? Pin
Jeffrey Chea26-Oct-09 12:33
Jeffrey Chea26-Oct-09 12:33 
QuestionGetPrivateProfileSectionW() [modified] Pin
p_196020-Mar-09 5:42
p_196020-Mar-09 5:42 
AnswerRe: GetPrivateProfileSectionW() Pin
Chris Losinger20-Mar-09 5:52
professionalChris Losinger20-Mar-09 5:52 
GeneralRe: GetPrivateProfileSectionW() [modified] Pin
p_196020-Mar-09 6:25
p_196020-Mar-09 6:25 
GeneralRe: GetPrivateProfileSectionW() Pin
Chris Losinger20-Mar-09 6:46
professionalChris Losinger20-Mar-09 6:46 
do you increment it anywhere ?

and i suspect, as David Crow notes below, that you're mixing Unicode and ANSI strings. GetPrivateProfileStringW is returning a wide char string, but NextSection is a char* pointer (not a wchar_t*), so it's only looking at one byte at a time:

GetPrivateProfileStringW gives you this:
n\0a\0m\0e\0 ... a NULL after each letter


GeneralRe: GetPrivateProfileSectionW() Pin
p_196020-Mar-09 6:55
p_196020-Mar-09 6:55 
GeneralRe: GetPrivateProfileSectionW() Pin
Chris Losinger20-Mar-09 7:06
professionalChris Losinger20-Mar-09 7:06 
GeneralRe: GetPrivateProfileSectionW() Pin
p_196020-Mar-09 7:16
p_196020-Mar-09 7:16 
AnswerRe: GetPrivateProfileSectionW() Pin
David Crow20-Mar-09 5:53
David Crow20-Mar-09 5:53 
AnswerRe: GetPrivateProfileSectionW() Pin
Keith Worden20-Mar-09 8:47
Keith Worden20-Mar-09 8:47 
QuestionTrapping windows messages in a native DLL Pin
Klive820-Mar-09 5:33
Klive820-Mar-09 5:33 
QuestionPlease Answer my doubt Pin
gautambhalla16320-Mar-09 5:12
gautambhalla16320-Mar-09 5:12 
AnswerRe: Please Answer my doubt Pin
Yusuf20-Mar-09 5:28
Yusuf20-Mar-09 5:28 
AnswerRe: Please Answer my doubt Pin
Michael Schubert20-Mar-09 5:45
Michael Schubert20-Mar-09 5:45 
AnswerRe: Please Answer my doubt Pin
David Crow20-Mar-09 5:56
David Crow20-Mar-09 5:56 
AnswerRe: Please Answer my doubt Pin
Nagy Vilmos20-Mar-09 10:25
professionalNagy Vilmos20-Mar-09 10:25 
GeneralRe: Please Answer my doubt Pin
Bassam Saoud20-Mar-09 11:23
Bassam Saoud20-Mar-09 11:23 
AnswerRe: Please Answer my doubt PinPopular
Bassam Saoud20-Mar-09 11:20
Bassam Saoud20-Mar-09 11:20 
AnswerRe: Please Answer my doubt Pin
harold aptroot20-Mar-09 11:39
harold aptroot20-Mar-09 11:39 
AnswerRe: Please Answer my doubt Pin
Zhat23-Mar-09 2:48
Zhat23-Mar-09 2:48 
Questionbool value Pin
p_196020-Mar-09 4:36
p_196020-Mar-09 4:36 
AnswerRe: bool value Pin
norish20-Mar-09 4:48
norish20-Mar-09 4:48 

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.