So, I am trying to use CArray
like this :
CArray<CPerson,CPerson&> allPersons;
int i=0;
for(int i=0;i<10;i++)
{
allPersons.SetAtGrow(i,CPerson(i));
i++;
}
But when compiling my program, I get this error :
"error C2248: 'CObject::CObject' :
cannot access private member declared
in class 'CObject' c:program
filesmicrosoft visual studio
9.0vcatlmfcincludeafxtempl.h"
I don't even understand where this is coming from.
HELP!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…