Solved

Dynamic Array in MFC!!!

Posted on 2001-06-11
5
775 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Show shut-down message as Windows 8 shuts down. 9 92
Replacement selected text 2 62
Window placement 17 83
Trying to run powershell  in a batch file. How do I do this? 8 92
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.

831 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