Solved

Dynamic Array in MFC!!!

Posted on 2001-06-11
5
774 Views
Last Modified: 2013-11-20
How do I store CPoint objects into dynamic array?
0
Comment
Question by:techpage
5 Comments
 
LVL 6

Accepted Solution

by:
snoegler earned 20 total points
ID: 6176958
CArray<CPoint,CPoint&> myArray;

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

Did i get the question right?

Cheers
0
 
LVL 2

Expert Comment

by:MadYugoslav
ID: 6177104
int Len;
CPoint* Points;
Points=new(CPoint[Len]);
0
 
LVL 3

Expert Comment

by:qocarlos
ID: 6178837
I'd go with snoegler solution. I'd also suggest you to have a look at the Scribble tutorial.

Carlos
0
 
LVL 6

Expert Comment

by:snoegler
ID: 6227961
Thanks for grading my comment, but please read this:
http://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp#3
0
 
LVL 3

Author Comment

by:techpage
ID: 6229942
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.NET how to use the Vertical ScrollBar 5 90
sameEnds challenge 3 133
maven archtype selection in eclipse 1 53
canBalance challenge 34 69
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now