CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    11

    How to create array of POINT structs?

    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


  2. #2
    Join Date
    May 1999
    Posts
    8

    Re: How to create array of POINT structs?

    POINT pntList[8];

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

    /good luck mate


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured