A CResourceException object is generated when Windows cannot find or allocate a requested resource. No further qualification is necessary or possible.
For more information on using CResourceException, see the article Exceptions in Visual C++ Programmer’s Guide.
#include <afxwin.h>