Reputation: 28900
I have a problem with CException
.
Probably something has changed in afx.h
The error I get is in the following line:
throw new CException();
The error is
error C2259: 'CException' : cannot instantiate abstract class due to following members: 'CException::~CException(void)' : is abstract
I never used MFC before and I just need it to compile as fast as I can, does anyone knows what the problem is ?
Upvotes: 0
Views: 579
Reputation: 425
Use one of the derived classes. See http://msdn.microsoft.com/en-us/library/t078xe4f.aspx for detailed info.
Or, instead, use std::exception
.
Upvotes: 3