Hi all,
I have a Structure defined as follows
Which consist of a CArray of CString, Now i need to make a CArray of the structur, which i did as followsCode:struct StationGroup { CString cStrGroupName; CArray<CString,CString&> cArryStationList; };
when i am adding a single object of the structure "StationGroup" to the CArray "m_cArryGroupList" as followsCode:CArray<StationGroup,StationGroup&> m_cArryGroupList;
I get an error as follows and it no way indicates that the error is in the above line, but if i comment this line, Then i dont get the following errorCode:m_cArryGroupList.Add((StationGroup&)sTructStationGroup);
where CPIConfigComm is the name of the classCode:PIConfigComm.cpp c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(272) : error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject' c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(554) : see declaration of 'CObject::operator =' c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(524) : see declaration of 'CObject' This diagnostic occurred in the compiler generated function 'CArray<TYPE,ARG_TYPE> &CArray<TYPE,ARG_TYPE>::operator =(const CArray<TYPE,ARG_TYPE> &)' with [ TYPE=CString, ARG_TYPE=CString & ]
Can some one please help me....
Thanks and Regards
RK




Reply With Quote