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