Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Dynamic Array in MFC!!!

Posted on 2001-06-11
5
Medium Priority
?
784 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 60 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
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.
Suggested Courses
Course of the Month12 days, 21 hours left to enroll

971 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