Hi All,
I have a class called CLine, and have declared a pointer by
I then point it to an object in an array by:Code:CLine *pWhichGen;
I then want to be able to view the members of LineArray[0] through the pointer. One of these members isCode:pWhichGen = &LineArray[0];
When I then put in a statement likeCode:int m_LineCrosses.
I get the errorCode:int TwoLines = pWhichGen.m_LineCrosses
Does anyone know how to do what i'm trying?Code:error C2228: left of '.m_LineCrosses' must have class/struct/union type
Many thanks
Dylan