Solved

How to use CDC::Polygon

Posted on 1998-08-24
1
402 Views
Last Modified: 2013-11-19
How do I create a pointer to an array of points in a form that CDC::Polygon would like ?
The on-line help tells me to pass a pointer to an array of CPoint objects or POINT structs, I created a pointer to an array (CPoint *pointarray[4];) but the compiler just laughs at me.

Any help greatly appreciated.

David Murphy
0
Comment
Question by:davidmurphy
1 Comment
 
LVL 7

Accepted Solution

by:
psdavis earned 50 total points
ID: 1321218
CPoint ptArray[ 4 ];
ptArray[0].x = ...

dc.Polygon( &ptArray, 4 );

Phillip
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
bobThere java chalenge 45 92
Pressing cancel button with C# UI Automation 3 66
fix34  challenge 9 116
Not needed 13 109
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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 …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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.

808 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