Dynamic Array in MFC!!!

How do I store CPoint objects into dynamic array?
LVL 3
techpageAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
snoeglerConnect With a Mentor Commented:
CArray<CPoint,CPoint&> myArray;

myArray.Add(CPoint(100,100));
myArray.Add(CPoint(110,110));
/* ... */

Did i get the question right?

Cheers
0
 
MadYugoslavCommented:
int Len;
CPoint* Points;
Points=new(CPoint[Len]);
0
 
qocarlosCommented:
I'd go with snoegler solution. I'd also suggest you to have a look at the Scribble tutorial.

Carlos
0
 
snoeglerCommented:
Thanks for grading my comment, but please read this:
http://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp#3
0
 
techpageAuthor Commented:
thanks snoegler, i'll keep that in mind... probably I should have graded 'A' since your comment is what I've been seeking... i'm sorry...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.