void CFiledirDlg::OnButton1()
{
// TODO: Add your control notification handler code here
CTime time=CTime::GetCurrentTime();
CString string_time=time.Format("%Y-%m-%d");
CString string_dir="G://TempVideo";
char dir[256];
sprintf(dir,"%s%s%s",string_dir," //",string_time);
try
{
::CreateDirectory(string_dir,NULL);
::CreateDirectory(dir,NULL);
}
catch(CException *except)
{
except->ReportError();
}
}
{
// TODO: Add your control notification handler code here
CTime time=CTime::GetCurrentTime();
CString string_time=time.Format("%Y-%m-%d");
CString string_dir="G://TempVideo";
char dir[256];
sprintf(dir,"%s%s%s",string_dir," //",string_time);
try
{
::CreateDirectory(string_dir,NULL);
::CreateDirectory(dir,NULL);
}
catch(CException *except)
{
except->ReportError();
}
}