我新建了个多文档  然后在里边添加了一个链栈 栈元素包含CBitmap如下
typedef struct Node
{
CBitmap data;
struct Node *next;
struct Node *previous;}Node;
class CStack : public CObject
{
public:
CStack();
virtual ~CStack(); Node *bottom;
Node *top;
Node *cur;public:
void InitStack();
///
void RecordBmp(CBitmap bmp);
/// BOOL IsNull();
BOOL IsFull();
CBitmap ReDo();
CBitmap UnDo(); void ClearReDo();};
然后我发现后边只要有CBitmap的函数都出错如
void CStack::RecordBmp(CBitmap bmp)
{

if(cur != top)
ClearReDo();

Node *temp;
temp->data = bmp;
temp->previous = bottom;
temp->next = NULL; bottom->next = temp;
cur = bottom = temp;}出错提示是1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(312) : error C2248: “CObject::operator =”: 无法访问 private 成员(在“CObject”类中声明)
1>        c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(552) : 参见“CObject::operator =”的声明
1>        c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(522) : 参见“CObject”的声明
1>        此诊断出现在编译器生成的函数“CGdiObject &CGdiObject::operator =(const CGdiObject &)”中