CFileException::m_cause

ÁÖÀÇ

CFileException ¿­°Å Çü½Ä¿¡ ÀÇÇØ Á¤ÀÇ µÈ °ªÀ» Æ÷ÇÔ ÇÕ´Ï´Ù. ÀÌ µ¥ÀÌÅÍ ¸â¹ö´Â Çü½Ä intÀÇ °ø¿ë º¯¼öÀÔ´Ï´Ù. ¿­°ÅÀÚ¿Í ±×µéÀÇ Àǹ̴ ´ÙÀ½°ú °°½À´Ï´Ù.:

¸Þ¸ðnbsp;??ÀÌ·¯ÇÑ CFileException ¿øÀÎ ¿­°ÅÀÚ´Â CArchiveException ¿øÀÎ ¿­°ÅÀÚ¿¡¼­ º°°³(&N)¡£

¿¹Á¦

Cfileexception::m_cause¿¡ ´ë ÇÑ //example
extern char * pFileName;
½Ãµµ
{
 nbsp; CFile f (pFileName, CFile::modeCreate (ko) | CFile::modeWrite);
}
CATCH (CFileException, e)
{
 ?? °æ¿ì (e-> m_cause = CFileException::fileNotFound)
 ?????? printf ("¿À·ù: found\n µÇÁö ¾Ê½À´Ï´Ù ÆÄÀÏ");
}
END_CATCH

CFileException °³¿ä |nbsp; Ŭ·¡½º ¸â¹ö (ko) | °èÃþ ±¸Á¶ Â÷Æ®(&N)

Index