Solved

Dynamic Array in MFC!!!

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Process filename extension 3 209
sameEnds challenge 3 187
building a service to accessed via telnet client, want colors ? 4 98
How to convert MFC::CString to UTF8 wchar_t* 10 387
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. …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

730 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