Click here to Skip to main content
14,458,486 members

C / C++ / MFC

 
AnswerRe: How to convert a CString object to char array in VC++ MFC [modified] Pin
Adam Roderick J24-Jan-10 20:23
MemberAdam Roderick J24-Jan-10 20:23 
GeneralRe: How to convert a CString object to char array in VC++ MFC Pin
Cedric Moonen24-Jan-10 21:23
MemberCedric Moonen24-Jan-10 21:23 
GeneralRe: How to convert a CString object to char array in VC++ MFC Pin
Adam Roderick J24-Jan-10 21:59
MemberAdam Roderick J24-Jan-10 21:59 
AnswerRe: How to convert a CString object to char array in VC++ MFC Pin
Joe Woodbury24-Jan-10 20:55
professionalJoe Woodbury24-Jan-10 20:55 
GeneralRe: How to convert a CString object to char array in VC++ MFC Pin
Member 439977124-Jan-10 21:22
MemberMember 439977124-Jan-10 21:22 
GeneralRe: How to convert a CString object to char array in VC++ MFC Pin
Joe Woodbury24-Jan-10 21:35
professionalJoe Woodbury24-Jan-10 21:35 
GeneralRe: How to convert a CString object to char array in VC++ MFC Pin
Member 439977124-Jan-10 22:31
MemberMember 439977124-Jan-10 22:31 
GeneralRe: How to convert a CString object to char array in VC++ MFC Pin
Maya_24-Jan-10 23:28
MemberMaya_24-Jan-10 23:28 
totlen = pdmFile.GetLength(); <- This gives you no of chars in the file.

So for loop iterates for each char and you are inserting null char: -> strLinee.AppendChar(ch[0]);

You should look for a new line char to get the no of lines in the file.
GeneralRe: How to convert a CString object to char array in VC++ MFC Pin
Member 439977125-Jan-10 1:18
MemberMember 439977125-Jan-10 1:18 
GeneralRe: How to convert a CString object to char array in VC++ MFC Pin
Joe Woodbury25-Jan-10 8:42
professionalJoe Woodbury25-Jan-10 8:42 
GeneralRe: How to convert a CString object to char array in VC++ MFC Pin
Joe Woodbury25-Jan-10 8:01
professionalJoe Woodbury25-Jan-10 8:01 
AnswerRe: How to convert a CString object to char array in VC++ MFC Pin
Madan Chauhan25-Jan-10 1:32
MemberMadan Chauhan25-Jan-10 1:32 
Questionquestion hooking virtual table / class functions Pin
nah133724-Jan-10 11:11
Membernah133724-Jan-10 11:11 
AnswerRe: question hooking virtual table / class functions Pin
Stuart Dootson24-Jan-10 12:54
professionalStuart Dootson24-Jan-10 12:54 
GeneralRe: question hooking virtual table / class functions Pin
nah133724-Jan-10 20:26
Membernah133724-Jan-10 20:26 
GeneralRe: question hooking virtual table / class functions Pin
Stuart Dootson24-Jan-10 21:40
professionalStuart Dootson24-Jan-10 21:40 
Questioniterator & operator overloading error Pin
khomeyni24-Jan-10 8:19
Memberkhomeyni24-Jan-10 8:19 
AnswerRe: iterator & operator overloading error Pin
Avi Berger24-Jan-10 8:31
MemberAvi Berger24-Jan-10 8:31 
GeneralRe: iterator & operator overloading error Pin
khomeyni24-Jan-10 8:38
Memberkhomeyni24-Jan-10 8:38 
GeneralRe: iterator & operator overloading error Pin
Avi Berger24-Jan-10 9:29
MemberAvi Berger24-Jan-10 9:29 
GeneralRe: iterator & operator overloading error Pin
khomeyni24-Jan-10 9:35
Memberkhomeyni24-Jan-10 9:35 
GeneralRe: iterator & operator overloading error Pin
khomeyni24-Jan-10 9:51
Memberkhomeyni24-Jan-10 9:51 
GeneralRe: iterator & operator overloading error Pin
Avi Berger24-Jan-10 9:55
MemberAvi Berger24-Jan-10 9:55 
GeneralRe: iterator & operator overloading error Pin
khomeyni24-Jan-10 9:58
Memberkhomeyni24-Jan-10 9:58 
GeneralRe: iterator & operator overloading error Pin
Avi Berger24-Jan-10 10:10
MemberAvi Berger24-Jan-10 10:10 

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.