1.txt 文件大小为 3M
程序代码:
  CFile f;
  CFileException e;
char* pFileName = "c:\\1.txt";
if( !f.Open( pFileName, CFile::modeRead, &e ) )
   {
#ifdef _DEBUG
   afxDump << "File could not be opened[ " << e.m_cause<<"]\n";
#endif
   }
f.Close();出错提示:
File could not be opened[ 11]e.m_cause=11的解释
CFileException::sharingViolation   SHARE.EXE was not loaded
疑问:
一开机运行程序时,程序报错不能打开文件1.txt,但是我把1.txt的数据删掉点变成
几百K时打开成功再次把1.txt恢复为以前的那个 
以后每次打开都成功为什么第一次打开时会出错呢,而且时每次开机后出现这种问题:(