try{
throw ;
}
catch(CException *pEx){
CString sample=(_T("IIII")); // Why cant i initialize CString variable?
//Unhandeled exception during run time When i am throw,
}
答案 0 :(得分:3)
throw;
重新抛出当前处理的异常。此表单仅在当前正在处理异常时允许(如果另外使用,则调用std::terminate
)。请亲自查看http://en.cppreference.com/w/cpp/language/throw。
所以,基本上,你的程序终止于throw ;
。