One way is to add this into your sources file:
TARGETLIBS=\ $(SDK_LIB_PATH)\nothrownew.obj \
Another way is to add a no throw each time you use the new operator:
ClassX *pObj = new (std::nothrow) ClassX(); if (!pObj) return E_OUTOFMEMORY;
Windows Systems Programming
TARGETLIBS=\ $(SDK_LIB_PATH)\nothrownew.obj \
ClassX *pObj = new (std::nothrow) ClassX(); if (!pObj) return E_OUTOFMEMORY;
No comments:
Post a Comment