Click here to Skip to main content
15,890,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionErase previous drawings Pin
llp00na20-Mar-09 6:53
llp00na20-Mar-09 6:53 
AnswerRe: Erase previous drawings Pin
Chris Losinger20-Mar-09 7:09
professionalChris Losinger20-Mar-09 7:09 
GeneralRe: Erase previous drawings Pin
llp00na20-Mar-09 7:27
llp00na20-Mar-09 7:27 
GeneralRe: Erase previous drawings Pin
Chris Losinger20-Mar-09 7:35
professionalChris Losinger20-Mar-09 7:35 
GeneralRe: Erase previous drawings Pin
David Crow20-Mar-09 9:25
David Crow20-Mar-09 9:25 
AnswerRe: Erase previous drawings Pin
Code-o-mat20-Mar-09 7:30
Code-o-mat20-Mar-09 7:30 
GeneralRe: Erase previous drawings Pin
llp00na20-Mar-09 8:17
llp00na20-Mar-09 8:17 
GeneralRe: Erase previous drawings Pin
llp00na20-Mar-09 8:23
llp00na20-Mar-09 8:23 
QuestionRe: Erase previous drawings Pin
David Crow20-Mar-09 8:31
David Crow20-Mar-09 8:31 
AnswerRe: Erase previous drawings Pin
llp00na20-Mar-09 9:04
llp00na20-Mar-09 9:04 
QuestionRe: Erase previous drawings Pin
David Crow20-Mar-09 9:06
David Crow20-Mar-09 9:06 
AnswerRe: Erase previous drawings Pin
llp00na20-Mar-09 9:12
llp00na20-Mar-09 9:12 
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 

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.