Click to See Complete Forum and Search --> : How to create array of POINT structs?


Tom G
May 15th, 1999, 12:16 AM
How do I declare and initialize an array of POINT structs to use in MFC polygonal functions?
I've tried many approaches including:

POINT{
LONG x;
LONG y;
} ptArray[8]



which elicits compiler error: cannot convert from tagPOINT[8] to tagPOINT*. What's wrong?

TIA

Tom

Thomas Rizos
May 15th, 1999, 08:24 AM
POINT pntList[8];

also if the array is big, try avoid using arrays and use STL template class - vector.

/good luck mate