attached are 2 projects 1 is which creates a listview and adds items
and second is the project which i want to create where in it will read the list view of the first project and put its values in text file separated with commas i m trying a lot but cant get through can any guru help me
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.
Last edited by DataMiser; May 7th, 2010 at 10:33 PM.
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.
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.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.