65,186
社区成员




void main()
{
CMyException tst("hello"), tst2;
// 没有问题
tst2 = tst;
// 报错
throw tst;
}
class CMyException : public CException
{
public:
CMyException() {}
CMyException(const CMyException& x) {
*this = x;
}
explicit CMyException(const char* szMsg) {}
~CMyException() {}
CMyException& operator=(const CMyException& x) {
return *this;
}
private:
};
class AFX_NOVTABLE CException : public CObject
[/quote]class AFX_NOVTABLE CException : public CObject