此帖出自嵌入式系统论坛
最新回复
CString cDirPath = "I:\\main\\"; //***********
CString cFromFileName = "I:\\main"; //***********
SHFILEOPSTRUCT FileOp;
BOOL bDir = (!CreateDirectory(cDirPath, NULL));
if(bDir != 1)
{
FileOp.fFlags = FOF_NOCONFIRMATION;
FileOp.hNameMappings = NULL;
FileOp.hwnd = NULL;
FileOp.lpszProgressTitle = NULL;
FileOp.pFrom = cFromFileName.GetBuffer(cFromFileName.GetLength()+2);
cFromFileName.ReleaseBuffer();
FileOp.pTo = NULL;
FileOp.wFunc = FO_DELETE;
int rval = SHFileOperation(&FileOp);
return FALSE;
}
详情
回复
发表于 2008-1-19 11:52
| ||
|
||
| |
|
|
此帖出自嵌入式系统论坛
| ||
|
||
| |
|
|
此帖出自嵌入式系统论坛
| ||
|
||
此帖出自嵌入式系统论坛
| ||
|
||
EEWorld Datasheet 技术支持