标题:这条语句为何有错 CMapm_pMap;
只看楼主
jpg4151
Rank: 1
等 级:新手上路
帖 子:80
专家分:0
注 册:2006-3-12
 问题点数:0 回复次数:0 
这条语句为何有错 CMapm_pMap;
其中people为自定义的与MFC无关的类
CMap<int, int, people, people&>m_pMap;

错误提示为
c:\program files\microsoft visual studio\vc98\mfc\include\afxtempl.h(1474) : error C2512: 'people' : no appropriate default constructor available
c:\program files\microsoft visual studio\vc98\mfc\include\afxtempl.h(1566) : while compiling class-template member function 'void __thiscall CMap<int,int,class people,class people &>::Serialize(class CArchive &)'
c:\program files\microsoft visual studio\vc98\mfc\include\afxtempl.h(1493) : error C2512: 'people' : no appropriate default constructor available
c:\program files\microsoft visual studio\vc98\mfc\include\afxtempl.h(1566) : while compiling class-template member function 'void __thiscall CMap<int,int,class people,class people &>::Dump(class CDumpContext &) const'
Error executing cl.exe.
搜索更多相关主题的帖子: CMapm pMap 语句 
2006-12-22 21:57



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-111417-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.837177 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved