471,334 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,334 software developers and data experts.

C++ .Net ArrayList Attribute XmlSerialization

Hi,

I'm trying to serialize a class that supports a dialog window containing a
ViewList with 2 Headers. (I created that class as I failed to Serialize the
window directly).
To support the content of the ViewList (DetailView) I created an ArrayList
containing String*[2] elements corresponding to my 2 ViewList Column Headers.

So the class looks like this :
public MyClass{
// usual stuff...
ArrayList* al = new ArrayList;
String* Items[] = new String*[2];
for(...)
{
Items[0] = string1; // the text value of the ListView Subelement in
Column 0
Items[1] = string2 ;// same for column 1
al->Add(Items)
}
}

So I end up with an ArrayList filled with String*[2], but when I serialize I
get an error message saying that 'String*[] cannot be used in this context'.

IS there a simple way to achieve what I want to do (serialize the content of
a ListView).

Thanks,

Meta-Meta
Jul 21 '05 #1
0 774

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by STom | last post: by
2 posts views Thread by Steven | last post: by
3 posts views Thread by Frustrated Newbie via DotNetMonster.com | last post: by
reply views Thread by Meta-Meta | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.