Re: listview to text file
Basically you just need to loop through the listview and write the data to a file,
Re: listview to text file
Quote:
Originally Posted by
DataMiser
Basically you just need to loop through the list view and write the data to a file,
i have coded but its not happening can u chk sir
Re: listview to text file
Post the CODE, and maybe we might be able to help. Or, maybe, check back on Sunday, and hand it in? :)
Re: listview to text file
I do not see any code that even checks to find the listview you want to use, just an enum child windows function that does not really seem to be used for anything at all.
I do see a lot of code that is much more complicated than it needs to be however code which I might add is not being used at this point.
Re: listview to text file
Sorry, Rohit, you are getting confused a little.
This sample you have posted does not work, because it does not find the hWnd of the ListView properly, because it is no child of the MDI-titled window.
I told you and proved already, that the SysListView32ToCSV() routine as you had it works perfectly. I proved it by adding an lvWof ListView to the project and producing a perfect CSV file from it.
If you go and fix the hWnd searching routine looking for the right window before it looks for the listview child it would work alright.
Nobody could give you a useful help here unless they had not this Odin-ListView which is giving you the trouble. The routine - as you have it - works with all usual ListViews as soon as you obtain their proper hWnd. So nobody could fix it, because it is good. The problem is that it does not work with a custom drawn ListView as it appears to be in the Odin program you want to read out.
1 Attachment(s)
Re: listview to text file
Rohit bhai,
i am also stuck at the same place. I can read data from other listview but with ODIN SysListView32, i am able to read only column headers. I think it is the same code which u have used. Now have u got any solution for this problem. Can we use memorydump type API call.
Any other expert may please help us out. Code i am using is attached.
Thanks.