标签:使用 strong for sp on c ad ef r
CString m_strFolderPath;
m_strFolderPath.Format(_T("F:\\%s"),load.m_name);
CString m_strFolderPath;
m_strFolderPath.Format(_T("F:\\%s"),load.m_name);
if(!PathIsDirectory(m_strFolderPath))
{
CString strMsg;
strMsg.Format (_T("指定路径\"%s\"不存在,是否创建?"), m_strFolderPath);
if (AfxMessageBox(strMsg, MB_YESNO) == IDYES)
{
if (!CreateDirectory(m_strFolderPath, NULL ) )
{
strMsg.Format(_T("创建路径\"%s\"失败!是否继续?"), m_strFolderPath);
if (AfxMessageBox(strMsg, MB_YESNO) == IDYES)
return;
}
}
}
标签:使用 strong for sp on c ad ef r
原文地址:http://www.cnblogs.com/hualimengyu/p/3986853.html