Click here to Skip to main content
15,908,673 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Erase previous drawings Pin
David Crow20-Mar-09 9:15
David Crow20-Mar-09 9:15 
AnswerRe: Erase previous drawings Pin
llp00na20-Mar-09 9:21
llp00na20-Mar-09 9:21 
QuestionMessage Removed Pin
20-Mar-09 6:21
professionalAndre' Gardiner20-Mar-09 6:21 
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 
hi ,
Im using the below code....

/*the below is the ini file i used..

[name]
name1=promod
name2=praneeth

*/

const int SIZE = 8000;

CString csSectionname=_T("name");

char lpszBuffer[SIZE];

CString csString;

::GetPrivateProfileSectionW(csSectionname,(LPWSTR)lpszBuffer,SIZE,_T(c:\\testing.ini");

char* NextSection="";

NextSection=lpszBuffer;

while(*NextSection!=NULL)
{
csString=NextSection;
NextSection=NextSection+strlen(NextSection)+1;
AfxMessageBox(csString);
}

But the messagebox prints only single letter at once instead of displaying key and value pair....

ie messagebox is displaying 'n'--->first time..
is displaying 'a'--->second time
.
.
.
.
i need messagebox to display name1=promod for the first time itself.....


Please help me out......

modified on Friday, March 20, 2009 12:52 PM

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 
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 

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.