Hello,
I'm a newbie to all this .NET stuff...
I create an array of points which I want to use with the DrawLines method

array<Point>^ points;

Now I want to fill the array with points- how do I do this?
Thanks for help

Edit: using Visual c++ 2008

Looks like there are a couple of methods. I didn't play around with it much further than this:

array<Point>^ ptarray = gcnew array<Point>(3);
ptarray->SetValue(Point(0,0),0);
ptarray->SetValue(Point(1,1),1);
ptarray[2] = Point(2,2);

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.