Click here to Skip to main content
15,895,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFind the EOF in CFile Pin
CodingLover25-Oct-07 19:14
CodingLover25-Oct-07 19:14 
AnswerRe: Find the EOF in CFile Pin
chandu00425-Oct-07 19:38
chandu00425-Oct-07 19:38 
GeneralRe: Find the EOF in CFile Pin
CodingLover25-Oct-07 19:55
CodingLover25-Oct-07 19:55 
AnswerRe: Find the EOF in CFile Pin
Nishad S25-Oct-07 20:43
Nishad S25-Oct-07 20:43 
GeneralRe: Find the EOF in CFile Pin
CodingLover25-Oct-07 21:24
CodingLover25-Oct-07 21:24 
GeneralRe: Find the EOF in CFile Pin
chandu00425-Oct-07 22:02
chandu00425-Oct-07 22:02 
GeneralRe: Find the EOF in CFile Pin
Nishad S25-Oct-07 22:05
Nishad S25-Oct-07 22:05 
AnswerRe: Find the EOF in CFile Pin
CodingLover30-Oct-07 19:35
CodingLover30-Oct-07 19:35 
This tread is old now, but I have a clue on this. I'm try it in this way,

First find the length of the file in bytes. Then iteratively do the process within calculated number of bytes. The code is as follows.

<br />
      int length = 0 ;<br />
      CString str<br />
<br />
      length = srf_ReadFile.GetLength()/sizeof(TCHAR) ;<br />
      str.Format(_T("File size is %d bytes long."), length) ;<br />
      AfxMessageBox(str, MB_OK) ; <br />


What you guys think about it, is there any efficient way to do it.

I appreciate your help all the time...
ErangaSmile | :)

QuestionVarious projects in one workspace Pin
neha.agarwal2725-Oct-07 18:41
neha.agarwal2725-Oct-07 18:41 
AnswerRe: Various projects in one workspace Pin
Paresh Chitte25-Oct-07 18:51
Paresh Chitte25-Oct-07 18:51 
AnswerRe: Various projects in one workspace Pin
JudyL_MD26-Oct-07 3:07
JudyL_MD26-Oct-07 3:07 
QuestionFile Handaling Pin
manish.patel25-Oct-07 17:59
manish.patel25-Oct-07 17:59 
AnswerRe: File Handaling Pin
Nishad S25-Oct-07 18:16
Nishad S25-Oct-07 18:16 
QuestionRe: File Handaling Pin
manish.patel25-Oct-07 18:20
manish.patel25-Oct-07 18:20 
AnswerRe: File Handaling Pin
Nishad S25-Oct-07 18:27
Nishad S25-Oct-07 18:27 
QuestionRe: File Handaling Pin
manish.patel25-Oct-07 19:12
manish.patel25-Oct-07 19:12 
AnswerRe: File Handaling Pin
Nishad S25-Oct-07 19:17
Nishad S25-Oct-07 19:17 
AnswerRe: File Handaling Pin
Paresh Chitte25-Oct-07 18:27
Paresh Chitte25-Oct-07 18:27 
Question(MFC42D.DLL): 0xC0000005: Access Violation. Pin
riteshsv25-Oct-07 17:37
riteshsv25-Oct-07 17:37 
AnswerRe: (MFC42D.DLL): 0xC0000005: Access Violation. Pin
Roger Stoltz25-Oct-07 22:44
Roger Stoltz25-Oct-07 22:44 
QuestionRe: (MFC42D.DLL): 0xC0000005: Access Violation. Pin
David Crow26-Oct-07 3:08
David Crow26-Oct-07 3:08 
AnswerRe: (MFC42D.DLL): 0xC0000005: Access Violation. Pin
Hamid_RT26-Oct-07 7:18
Hamid_RT26-Oct-07 7:18 
QuestionAccess unallocated memory... Pin
nmhuy25-Oct-07 16:20
nmhuy25-Oct-07 16:20 
AnswerRe: Access unallocated memory... Pin
Roger Stoltz25-Oct-07 22:42
Roger Stoltz25-Oct-07 22:42 
AnswerRe: Access unallocated memory... Pin
nmhuy26-Oct-07 7:19
nmhuy26-Oct-07 7:19 

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.