Solved

Dynamic Array in MFC!!!

Posted on 2001-06-11
5
773 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
Comment Utility
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
Comment Utility
int Len;
CPoint* Points;
Points=new(CPoint[Len]);
0
 
LVL 3

Expert Comment

by:qocarlos
Comment Utility
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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

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 …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.

771 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

16 Experts available now in Live!

Get 1:1 Help Now