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

C / C++ / MFC

 
AnswerRe: Tree Draw Pin
Hamid_RT21-Aug-08 20:00
Hamid_RT21-Aug-08 20:00 
GeneralRe: Tree Draw Pin
polopo21-Aug-08 20:01
polopo21-Aug-08 20:01 
GeneralRe: Tree Draw Pin
Hamid_RT21-Aug-08 20:10
Hamid_RT21-Aug-08 20:10 
GeneralRe: Tree Draw Pin
polopo21-Aug-08 22:21
polopo21-Aug-08 22:21 
GeneralRe: Tree Draw Pin
Hamid_RT21-Aug-08 23:38
Hamid_RT21-Aug-08 23:38 
QuestionHow to set the border width of dialog box Pin
Ganesh_T21-Aug-08 19:45
Ganesh_T21-Aug-08 19:45 
AnswerRe: How to set the border width of dialog box Pin
Nibu babu thomas21-Aug-08 20:52
Nibu babu thomas21-Aug-08 20:52 
QuestionHow to read contents of a .txt file line by line Pin
kapardhi21-Aug-08 19:25
kapardhi21-Aug-08 19:25 
Hai !
GoodMorning !

I am able to read the contents of a whole xyz.txt file into an character array, using

CFile cfile_object;
cfile_object.Open( strFilePath, CFile::modeRead);
// strFilePath contains the path of the required file
int len = cfile_object.GetLength();
char chFile[len];
UINT lBytesRead = cfile_object.Read (chFile, len);

chFile contains whole content of xyz.txt file, but i want each line of xyz.txt file to be stored in a separate string?
if possible plz supply some sample/reference code.

thanks!
AnswerRe: How to read contents of a .txt file line by line Pin
Naveen21-Aug-08 19:28
Naveen21-Aug-08 19:28 
AnswerRe: How to read contents of a .txt file line by line Pin
_AnsHUMAN_ 21-Aug-08 19:29
_AnsHUMAN_ 21-Aug-08 19:29 
AnswerRe: How to read contents of a .txt file line by line Pin
Hamid_RT21-Aug-08 19:56
Hamid_RT21-Aug-08 19:56 
QuestionVC++ MFC Pin
Selvan.S21-Aug-08 19:23
Selvan.S21-Aug-08 19:23 
AnswerRe: VC++ MFC Pin
nisha0000021-Aug-08 19:26
nisha0000021-Aug-08 19:26 
General[Message Deleted] Pin
Madan Chauhan21-Aug-08 20:15
Madan Chauhan21-Aug-08 20:15 
GeneralRe: VC++ MFC Pin
Hamid_RT21-Aug-08 20:22
Hamid_RT21-Aug-08 20:22 
AnswerRe: VC++ MFC Pin
Hamid_RT21-Aug-08 19:55
Hamid_RT21-Aug-08 19:55 
AnswerRe: VC++ MFC Pin
Jijo.Raj21-Aug-08 20:36
Jijo.Raj21-Aug-08 20:36 
QuestionLPARAM problem Pin
Dhiraj kumar Saini21-Aug-08 18:50
Dhiraj kumar Saini21-Aug-08 18:50 
AnswerRe: LPARAM problem Pin
Joe Woodbury21-Aug-08 18:57
professionalJoe Woodbury21-Aug-08 18:57 
GeneralRe: LPARAM problem Pin
Dhiraj kumar Saini21-Aug-08 19:02
Dhiraj kumar Saini21-Aug-08 19:02 
GeneralRe: LPARAM problem Pin
Joe Woodbury21-Aug-08 19:46
professionalJoe Woodbury21-Aug-08 19:46 
Questioncall OnCancel of Dialog from a thread in the dialog Pin
ptr_Electron21-Aug-08 18:47
ptr_Electron21-Aug-08 18:47 
AnswerRe: call OnCancel of Dialog from a thread in the dialog Pin
Jijo.Raj21-Aug-08 19:41
Jijo.Raj21-Aug-08 19:41 
QuestionHow do I edit a combo box's list-box item in-place ? Pin
SherTeks21-Aug-08 18:12
SherTeks21-Aug-08 18:12 
AnswerRe: How do I edit a combo box's list-box item in-place ? Pin
Hamid_RT21-Aug-08 18:18
Hamid_RT21-Aug-08 18:18 

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.