I have a class header file and in the header file I'm declaring a CArray variable as this:
Then in the CPP file I'm trying to use the objects like this:
FIELDOBJECTSTRUCT is a structure defined in stdafx.h which is included in both the header and cpp files (I've also tried all combinations of included in one but not the other).
During compile I get the error:
error C2065: 'm_aPageHeader' : undeclared identifier
I have no clue what I need to do to use this. Could some one please help out a newb programmer? Thanks in advance.
Code:
[COLOR=green]CArray<FIELDOBJECTSTRUCT, FIELDOBJECTSTRUCT> m_aPageHeader;
[/color]
Then in the CPP file I'm trying to use the objects like this:
Code:
[COLOR=green]
m_aPageHeader.Add((FIELDOBJECTSTRUCT)fos);
[/color]
FIELDOBJECTSTRUCT is a structure defined in stdafx.h which is included in both the header and cpp files (I've also tried all combinations of included in one but not the other).
During compile I get the error:
error C2065: 'm_aPageHeader' : undeclared identifier
I have no clue what I need to do to use this. Could some one please help out a newb programmer? Thanks in advance.