Here is my situation:

class CFilterTab : public CDialogBar

{

private:

CTypedPtrArray<CObArray,CDialog*> m_DlgArray;

};

void CReponseFilterTab::CreatePages()

{

CDialog* dlg;

dlg = &dlgStudent;

ASSERT(dlg);

m_DlgArray.Add(dlg);

VERIFY(dlg->Create(IDD_STUDENT,&m_tabcontrol));

dlg = &dlgDate;

ASSERT(dlg);

m_DlgArray.Add(dlg);

VERIFY(dlg->Create(IDD_DATE,&m_tabcontrol));

dlg = &dlgLesson;

ASSERT(dlg);

m_DlgArray.Add(dlg);

VERIFY(dlg->Create(IDD_LESSON,&m_tabcontrol));

dlg = &dlgChoice;

ASSERT(dlg);

m_DlgArray.Add(dlg);

VERIFY(dlg->Create(IDD_CHOICE,&m_tabcontrol));

}

I get these errors:

K:\projet2\VRUtilities\ReponseFilterTab.cpp(50) : error C2248: 'm_DlgArray' : cannot access private member declared in

class 'CFilterTab'

k:\projet2\vrutilities\filtertab.h(18) : see declaration of 'm_DlgArray'

K:\projet2\VRUtilities\ReponseFilterTab.cpp(56) : error C2248: 'm_DlgArray' : cannot access private member declared in

class 'CFilterTab'

k:\projet2\vrutilities\filtertab.h(18) : see declaration of 'm_DlgArray'

K:\projet2\VRUtilities\ReponseFilterTab.cpp(61) : error C2248: 'm_DlgArray' : cannot access private member declared in

class 'CFilterTab'

k:\projet2\vrutilities\filtertab.h(18) : see declaration of 'm_DlgArray'

K:\projet2\VRUtilities\ReponseFilterTab.cpp(66) : error C2248: 'm_DlgArray' : cannot access private member declared in

class 'CFilterTab'

k:\projet2\vrutilities\filtertab.h(18) : see declaration of 'm_DlgArray'

K:\projet2\VRUtilities\ReponseFilterTab.cpp(75) : error C2248: 'm_DlgArray' : cannot access private member declared in

class 'CFilterTab'

k:\projet2\vrutilities\filtertab.h(18) : see declaration of 'm_DlgArray'

I realize I cannot access a private member. But I'm not sure how to create a function in CFilterTab that will return my

m_DlgArray.

Need some assistance

CTypedPtrArray<CObArray,CDialog*> CFilterTab::GetArray()

{

return m_DlgArray;

}

Can I do this? I've tried and I get this error:

K:\projet2\VRUtilities\FilterTab.cpp(127) : error C2558: class 'CTypedPtrArray<class CObArray,class CDialog *>' : no

copy constructor available


Thank you in advance for your help