onecoreuap\shell\windows.storage\drivfldr.cpp(1420)\windows.storage.dll!73B82B94: (caller: 73ACFDC9) ReturnHr(41) tid(ae0) 8007000F The system cannot find the drive specified. 我
的系统是windows 10,以上是其中一条错误信息, 实在不知道如何解决,网上并没有太多答案,但是同样的code在windows8 运行没有这样的提示,偶尔也会弹出Exception thrown at 0x75381812 (KernelBase.dll) in OSapp.exe: 0x000006BA: The RPC server is unavailable这样的错误。
求解答!小白新手一枚,以下是我创建CFileDialog的code
CFile file;
static CString filePathName;
CFileDialog fileDialog(FALSE, fileDialogExt, filePathName, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
fileDialogFilter);
if (fileDialog.DoModal() == IDOK)
{
CString oldPathName(filePathName);
filePathName = fileDialog.GetPathName();
}
if (!file.Open(filePathName, CFile::modeCreate | CFile::modeWrite))
{
CString msg("Can not open " + filePathName + "\nCheck the name.");
MessageBox(msg, "File Save Error", MB_ICONEXCLAMATION | MB_OK);
return;
}
char info[SIZE];
sprintf_s(info, "Saving %d Lines", m_edit.GetLineCount());
MessageBox(info, "File Save", MB_ICONINFORMATION | MB_OK);
m_edit.FmtLines(TRUE);
m_edit.GetWindowText((LPSTR)buffer, length + 1);
file.Write(buffer, length + 1);
file.Close();