> Hi Ben, you are right...I've spent enormous time just for one control
> and all i want to do is something easy.
> But I'm stuck you see, because I've written a lot of code and if I
> change back to MFC it will take me time to re-write everything.
Wasn't suggesting going back to MFC. Was recommending you use the new
managed C++, C++/CLI, which comes with Visual Studio 2005, and totally
replaces "Managed Extensions for C++".
> I've looked at the SubItems property but there isn't anything 'sound'
> to say how to get the test from a subitem.
[quoted text clipped - 10 lines]
>
> Doesn't say anything on How to retrieve the text...
It's a collection, you can get the members just like you did with Items.
Each member is a ListViewSubItem, with ForeColor, Font, Text properties...
> Any more thoughts?
> Thanks again
Pantokrator - 15 Jun 2007 12:20 GMT
Thanks Ben, but unfortunately my company doesn't want to pay for any
vs 2005 upgrade and I desperately need to solve this problem.
Have you got any example to retrieve the text from the collection
ListViewSubItem?? I'm stuck unfortuantely
Thanks for your help
Massimo - 15 Jun 2007 12:54 GMT
I dont't know if I can help you but in the past I worked with C++ .NET
2003 and I read text from subitems in this way:
String *s = listview->Items->get_Item(0)->SubItems->get_Item(0)->Text;
Bye
Massimo
Pantokrator ha scritto:
> Thanks Ben, but unfortunately my company doesn't want to pay for any
> vs 2005 upgrade and I desperately need to solve this problem.
> Have you got any example to retrieve the text from the collection
> ListViewSubItem?? I'm stuck unfortuantely
>
> Thanks for your help
Pantokrator - 15 Jun 2007 17:31 GMT
Thanks!
At last it worked!
Ben Voigt [C++ MVP] - 15 Jun 2007 18:32 GMT
> Thanks Ben, but unfortunately my company doesn't want to pay for any
> vs 2005 upgrade and I desperately need to solve this problem.
> Have you got any example to retrieve the text from the collection
> ListViewSubItem?? I'm stuck unfortuantely
using VC++ 2005 Express is preferable to VS 2003 Managed Extensions for C++
because a lot of runtime bugs were fixed.
> Thanks for your help