mfc 中的CStringList怎么不能作为参数和返回值?
直接返回,返回指针,传出参数都有问题。。。 这是为啥呢。。
1>d:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcoll.h(899): error C2248: “CObject::operator =”: 无法访问 private 成员(在“CObject”类中声明)
1> d:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afx.h(535) : 参见“CObject::operator =”的声明
1> d:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afx.h(509) : 参见“CObject”的声明
1> 此诊断出现在编译器生成的函数“CStringList &CStringList::operator =(const CStringList &)”中
1> BeginDlg.cpp
1>d:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxcoll.h(899): error C2248: “CObject::operator =”: 无法访问 private 成员(在“CObject”类中声明)
1> d:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afx.h(535) : 参见“CObject::operator =”的声明
1> d:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afx.h(509) : 参见“CObject”的声明
1> 此诊断出现在编译器生成的函数“CStringList &CStringList::operator =(const CStringList &)”中
1> BeginDlg.cpp
...全文
相关推荐
C++中CSTRINGLIST用法详解
C++中的CStringList类是一种特殊的容器,它是一个链表结构,提供了方便的字符串操作功能。它在Microsoft Foundation Classes (MFC)库中被广泛使用,尤其是在STL
CListDemo.rar_CStringList_链表类
总之,`CListDemo`这个示例项目为学习和理解`CStringList`在VC++中的应用提供了一个实践平台。通过分析和运行源代码,开发者可以更好地掌握链表操作以及MFC容器类的使用技巧。
部分MFC和API函数
**CString类**:MFC中的字符串类,提供了丰富的字符串操作方法。27. **CStringList类**:支持`CString`对象的列表,方便进行字符串集合的管理。28.
常用MFC和API函数.pdf
常用MFC和API函数索引本文档中收录了常用的MFC和API函数,包括CArchive类、CBitmap类、CBrush类、CButton类、CByteArray类、CCmdUI类、CColorDialog
任务管理器MFC实现
**数据结构和控件绑定**:MFC提供列表视图(CListCtrl)和详细视图(CTreeCtrl)等控件,可以与数据结构(如CArray、CList、CStringList等)绑定,展示和操作进程信息


