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

C / C++ / MFC

 
QuestionRe: Processing strings ASAP Pin
CPallini1-Apr-10 21:21
mveCPallini1-Apr-10 21:21 
AnswerRe: Processing strings ASAP Pin
PaulowniaK1-Apr-10 21:32
PaulowniaK1-Apr-10 21:32 
GeneralRe: Processing strings ASAP Pin
CPallini1-Apr-10 21:48
mveCPallini1-Apr-10 21:48 
GeneralRe: Processing strings ASAP Pin
PaulowniaK1-Apr-10 22:03
PaulowniaK1-Apr-10 22:03 
GeneralRe: Processing strings ASAP Pin
CPallini1-Apr-10 22:16
mveCPallini1-Apr-10 22:16 
GeneralRe: Processing strings ASAP Pin
PaulowniaK4-Apr-10 14:20
PaulowniaK4-Apr-10 14:20 
GeneralRe: Processing strings ASAP Pin
CPallini5-Apr-10 0:09
mveCPallini5-Apr-10 0:09 
Questioncsv file problem Pin
Member 5903101-Apr-10 19:29
Member 5903101-Apr-10 19:29 
hi,
i m reading data of csv file in a char buffer like this
CFile shopCart(strFileName,CFile::modeRead);
char buff[5000]={0};
shopCart.Read(buff,sizeof(buff));
and then saving changes before closing application in this way.

CFile::Remove(strFileName);
CFile csvFile(strFileName,CFile::modeWrite |CFile::modeCreate );
strCSV = L"|" + strCSV+ char(13) + char(10);
csvFile.Write(strCSV,strCSV.GetLength()*sizeof(TCHAR));

problem is that at first exec buffer holds data of all the file but after closing and re exec buffer contains only one character of file even though file contains same data after updation.wat can be the problem may b?
AnswerRe: csv file problem Pin
Eugen Podsypalnikov1-Apr-10 19:45
Eugen Podsypalnikov1-Apr-10 19:45 
GeneralRe: csv file problem Pin
Member 5903101-Apr-10 20:01
Member 5903101-Apr-10 20:01 
GeneralRe: csv file problem Pin
Eugen Podsypalnikov1-Apr-10 20:12
Eugen Podsypalnikov1-Apr-10 20:12 
GeneralRe: csv file problem Pin
Member 5903101-Apr-10 20:31
Member 5903101-Apr-10 20:31 
GeneralRe: csv file problem Pin
Eugen Podsypalnikov1-Apr-10 20:35
Eugen Podsypalnikov1-Apr-10 20:35 
GeneralRe: csv file problem Pin
Member 5903101-Apr-10 20:45
Member 5903101-Apr-10 20:45 
GeneralRe: csv file problem Pin
Eugen Podsypalnikov1-Apr-10 20:53
Eugen Podsypalnikov1-Apr-10 20:53 
GeneralRe: csv file problem Pin
Member 5903101-Apr-10 20:59
Member 5903101-Apr-10 20:59 
GeneralRe: csv file problem Pin
Eugen Podsypalnikov1-Apr-10 21:03
Eugen Podsypalnikov1-Apr-10 21:03 
GeneralRe: csv file problem Pin
Member 5903101-Apr-10 21:04
Member 5903101-Apr-10 21:04 
GeneralRe: csv file problem Pin
Eugen Podsypalnikov1-Apr-10 21:11
Eugen Podsypalnikov1-Apr-10 21:11 
GeneralRe: csv file problem Pin
Member 5903101-Apr-10 21:24
Member 5903101-Apr-10 21:24 
GeneralRe: csv file problem Pin
Eugen Podsypalnikov1-Apr-10 21:29
Eugen Podsypalnikov1-Apr-10 21:29 
GeneralRe: csv file problem Pin
Member 5903101-Apr-10 21:30
Member 5903101-Apr-10 21:30 
QuestionHow to calculate width and height of different font size ,font style and no of characters ? Pin
shiv@nand1-Apr-10 19:16
shiv@nand1-Apr-10 19:16 
AnswerRe: How to calculate width and height of different font size ,font style and no of characters ? Pin
Adam Roderick J1-Apr-10 19:30
Adam Roderick J1-Apr-10 19:30 
AnswerRe: How to calculate width and height of different font size ,font style and no of characters ? [modified] Pin
Eugen Podsypalnikov1-Apr-10 20:04
Eugen Podsypalnikov1-Apr-10 20:04 

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.