hyamw(林锋) ,再请教
调试是可以的,但是当写文件时,会出现
CFile exception: accessDenied, File C:\Program Files\Internet Explorer\Monitor.dat, OS error information = 5.
First-chance exception in IEXPLORE.EXE (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
file.Open(filepath,CFile::modeCreate|CFile::typeBinary|CFile::shareExclusive);
file.Write(_T("这是一个测试!This is a test")/*lpBuf*/,nCount);
file.Close();