|
-
September 24th, 2012, 09:50 AM
#9
Re: display data of text file in list view
 Originally Posted by tspga
i dont have any problem with creating right view, thanx for your help but i already know that, what im asking is about reading file and tokenizing and then getting access to that read data for displaying. my questions
i have tried reading file and have made ReadTextFile(...) member function of listview class
Q1. is this function called automatically somewhere or i have to call it explicitly
Q2. if i have to call it explicitly somewhere im confused ,how to provide its parameters i.e LPCTSTR pszFileName, CStringArray& arrLines from where did i get them
Q3. tokenize is used to parse string so first i have to get string from arrlines right? which function is better to be used for that purpose?
pardon me for asking basics but im quite new to visual c++ thats why.
1) You would have to call it explicitly. Why would you think otherwise?
2) You know the name of the file, not us. I don't really see why you need a CStringArray at all, but it could be a member of your view class.
3) ovidiucucu gave you links in post #3.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|