Click here to Skip to main content
15,891,907 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: fractal Pin
John R. Shaw3-Feb-06 1:54
John R. Shaw3-Feb-06 1:54 
AnswerRe: fractal Pin
Owner drawn3-Feb-06 1:22
Owner drawn3-Feb-06 1:22 
AnswerRe: fractal Pin
David Crow3-Feb-06 4:36
David Crow3-Feb-06 4:36 
QuestionHow to Insert & Get BLOBs into MSDE Pin
Shoaib Patel2-Feb-06 20:59
Shoaib Patel2-Feb-06 20:59 
QuestionWorking with INI Related functions Pin
swaapu2-Feb-06 20:17
swaapu2-Feb-06 20:17 
AnswerRe: Working with INI Related functions Pin
_anil_2-Feb-06 20:31
_anil_2-Feb-06 20:31 
GeneralRe: Working with INI Related functions Pin
swaapu2-Feb-06 20:36
swaapu2-Feb-06 20:36 
GeneralRe: Working with INI Related functions Pin
_anil_2-Feb-06 21:06
_anil_2-Feb-06 21:06 
don't know XML at all.
tell me in which format do you want?

I changed your program as I guess your requirment.


FILE *fpr,*fpw;
CHAR buffer[50];
DWORD nSize=50;
LPTSTR lpszReturnBuffer;
CHAR buff[50];

fpr = fopen("C:\\SWATI.INI","r");
fpw = fopen("C:\\Ss.txt","w");

lpszReturnBuffer = buff;
fprintf(fpw,"");

memset(buffer, 0x00, 50);
GetPrivateProfileSectionNames(buffer,nSize,"C:\\SWATI.INI");
char* pBuffer = buffer;
int nWrite = 0;
while(strlen(pBuffer) > 0){
nWrite = fprintf(fpw,"\n<%s>",pBuffer);
memset(buff, 0x00, 50);
GetPrivateProfileSection(pBuffer,buff,nSize,"C:\\SWATI.INI");
char* pBuff = buff;
int nWrt = 0;
while(strlen(pBuff) > 0){
nWrt = fprintf(fpw,"\n%s",pBuff);
pBuff = pBuff + nWrt;
}
pBuffer = pBuffer + nWrite - 2;
fflush(fpw);
}


fclose(fpr);
fclose(fpw);
AfxMessageBox("ok");
GeneralRe: Working with INI Related functions Pin
swaapu2-Feb-06 21:56
swaapu2-Feb-06 21:56 
GeneralRe: Working with INI Related functions Pin
_anil_2-Feb-06 22:06
_anil_2-Feb-06 22:06 
GeneralRe: Working with INI Related functions Pin
swaapu2-Feb-06 22:25
swaapu2-Feb-06 22:25 
GeneralRe: Working with INI Related functions Pin
_anil_2-Feb-06 22:32
_anil_2-Feb-06 22:32 
GeneralRe: Working with INI Related functions Pin
swaapu2-Feb-06 22:39
swaapu2-Feb-06 22:39 
GeneralRe: Working with INI Related functions Pin
_anil_2-Feb-06 23:34
_anil_2-Feb-06 23:34 
GeneralRe: Working with INI Related functions Pin
swaapu5-Feb-06 20:12
swaapu5-Feb-06 20:12 
GeneralRe: Working with INI Related functions Pin
alleyes24-Jul-09 4:45
professionalalleyes24-Jul-09 4:45 
AnswerRe: Working with INI Related functions Pin
Jagadeesh VN2-Feb-06 20:34
Jagadeesh VN2-Feb-06 20:34 
GeneralRe: Working with INI Related functions Pin
swaapu2-Feb-06 20:43
swaapu2-Feb-06 20:43 
GeneralRe: Working with INI Related functions Pin
Jagadeesh VN2-Feb-06 20:51
Jagadeesh VN2-Feb-06 20:51 
AnswerRe: Working with INI Related functions Pin
John R. Shaw2-Feb-06 21:59
John R. Shaw2-Feb-06 21:59 
QuestionRun-Time Check Failure #3 Pin
newbie53452-Feb-06 20:15
newbie53452-Feb-06 20:15 
AnswerRe: Run-Time Check Failure #3 Pin
John R. Shaw2-Feb-06 23:19
John R. Shaw2-Feb-06 23:19 
GeneralRe: Run-Time Check Failure #3 Pin
newbie53453-Feb-06 11:12
newbie53453-Feb-06 11:12 
QuestionDrag and Drop Pin
Anil_vvs2-Feb-06 19:58
Anil_vvs2-Feb-06 19:58 
AnswerRe: Drag and Drop Pin
Prakash Nadar2-Feb-06 20:02
Prakash Nadar2-Feb-06 20:02 

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.