N
NKH
Hi,
I am trying to recompile application that has been developed in VC++
6.0 with VC++2005..
While compiling, I'm getting the following error..
error C2248: 'CObject::CObject' : cannot access private member declared
in class 'CObject'
1> c:\program files\microsoft visual studio
8\vc\atlmfc\include\afx.h(553) : see declaration of 'CObject::CObject'
1> c:\program files\microsoft visual studio
8\vc\atlmfc\include\afx.h(524) : see declaration of 'CObject'
1> This diagnostic occurred in the compiler generated function
'CException::CException(const CException &)'
Our application have a custom exception class derived from CException
which in turn implements a copy constructor
CSException (const CSException &ToCopy);
The code from which this exception is called as below..
throw CSException (Msg, __FILE__, __LINE__);
Please let me know what could be wrong here and how I can overcome
this..
Thanks,
Nishant
I am trying to recompile application that has been developed in VC++
6.0 with VC++2005..
While compiling, I'm getting the following error..
error C2248: 'CObject::CObject' : cannot access private member declared
in class 'CObject'
1> c:\program files\microsoft visual studio
8\vc\atlmfc\include\afx.h(553) : see declaration of 'CObject::CObject'
1> c:\program files\microsoft visual studio
8\vc\atlmfc\include\afx.h(524) : see declaration of 'CObject'
1> This diagnostic occurred in the compiler generated function
'CException::CException(const CException &)'
Our application have a custom exception class derived from CException
which in turn implements a copy constructor
CSException (const CSException &ToCopy);
The code from which this exception is called as below..
throw CSException (Msg, __FILE__, __LINE__);
Please let me know what could be wrong here and how I can overcome
this..
Thanks,
Nishant