Click here to Skip to main content
15,902,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalstrange warning Pin
Jerome Conus17-Nov-03 19:35
Jerome Conus17-Nov-03 19:35 
GeneralRe: strange warning Pin
Michael Dunn17-Nov-03 19:59
sitebuilderMichael Dunn17-Nov-03 19:59 
GeneralRe: strange warning Pin
Jerome Conus17-Nov-03 20:07
Jerome Conus17-Nov-03 20:07 
GeneralRe: strange warning Pin
Prakash Nadar17-Nov-03 23:52
Prakash Nadar17-Nov-03 23:52 
GeneralColumn based selection; Pin
Bo Hunter17-Nov-03 19:29
Bo Hunter17-Nov-03 19:29 
QuestionMaximum length of string?? Pin
xxhimanshu17-Nov-03 19:28
xxhimanshu17-Nov-03 19:28 
AnswerRe: Maximum length of string?? Pin
Michael Dunn17-Nov-03 20:01
sitebuilderMichael Dunn17-Nov-03 20:01 
GeneralRe: Maximum length of string?? Pin
xxhimanshu17-Nov-03 20:05
xxhimanshu17-Nov-03 20:05 
Confused | :confused: Confused | :confused: Hi,
Thanks for your message. I am just trying to store a encoded XMl file data into the string..so that I do not need to decode it any time..and make it physically available to the user..hence I need to store the data into a string. But after a limit it stops appending the data to the string, I hope there cannot be any NULL into a XML file. When i try to decode it, the file is decoded successfully and hence it is in proper XML format..but when i try to store the same data into string it just stops at a point..here is the piece of code i am using..
CString S;
CString XML;
XML=S;
CFile inFile;
BYTE con[65535];
CFile outFile;
if(!inFile.Open(inFilePath,CFile::modeRead|CFile::shareDenyNone)) return "Error";
if(!outFile.Open(outFilePath,CFile::modeCreate|CFile::modeWrite)) return false;
CArchive ar(&inFile,CArchive::load);
BYTE Result[57+1];
while(ar.ReadString(S)) {
char Len=Decode(Result,S);
XML+=Result;
// MessageBox(NULL,XML,"XML",MB_OK);
outFile.Write(Result, Len);
}
return XML;

Please help..Thanks a lot in advance..My data in XML is around 1 MB..the file size id 1.2 MB nearly..
Regards



Himanshu
GeneralDeveloping for Pocket PC Pin
georgiek5017-Nov-03 18:58
georgiek5017-Nov-03 18:58 
GeneralRe: Developing for Pocket PC Pin
Michael P Butler17-Nov-03 22:42
Michael P Butler17-Nov-03 22:42 
GeneralRe: Developing for Pocket PC Pin
georgiek5017-Nov-03 22:48
georgiek5017-Nov-03 22:48 
QuestionCMap Efficiency??? Pin
Uma Mahes17-Nov-03 18:04
Uma Mahes17-Nov-03 18:04 
AnswerRe: CMap Efficiency??? Pin
Brian Shifrin18-Nov-03 0:03
Brian Shifrin18-Nov-03 0:03 
Questionprinter help? Pin
murali_utr17-Nov-03 18:01
murali_utr17-Nov-03 18:01 
AnswerRe: printer help? Pin
Brian Shifrin17-Nov-03 23:43
Brian Shifrin17-Nov-03 23:43 
QuestionHow 2 send to correct ClientSocket with ServerSocket? Pin
G.Milos17-Nov-03 16:26
sussG.Milos17-Nov-03 16:26 
Generalquick statusbar question Pin
LOSTTWARE.com17-Nov-03 16:19
LOSTTWARE.com17-Nov-03 16:19 
GeneralRe: quick statusbar question Pin
LOSTTWARE.com17-Nov-03 19:15
LOSTTWARE.com17-Nov-03 19:15 
GeneralRe: quick statusbar question Pin
Zhuofei Wang17-Nov-03 19:28
Zhuofei Wang17-Nov-03 19:28 
GeneralRe: quick statusbar question Pin
LOSTTWARE.com18-Nov-03 15:18
LOSTTWARE.com18-Nov-03 15:18 
GeneralFile open and close Pin
alex.barylski17-Nov-03 16:15
alex.barylski17-Nov-03 16:15 
GeneralRe: File open and close Pin
Prakash Nadar17-Nov-03 16:40
Prakash Nadar17-Nov-03 16:40 
GeneralRe: File open and close Pin
alex.barylski18-Nov-03 4:54
alex.barylski18-Nov-03 4:54 
GeneralRe: File open and close Pin
Peter Molnar18-Nov-03 14:39
Peter Molnar18-Nov-03 14:39 
GeneralRe: File open and close Pin
georgiek5017-Nov-03 23:09
georgiek5017-Nov-03 23:09 

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.