int f = _open(lpszFile, _O_RDWR, _S_IREAD | _S_IWRITE);
long L = 0;
L = _filelength(f);
_close(f);m_lpFile = fopen(lpszFile, "w+");
当调用_filelength过后,后面的fopen函数就总是返回0,GetLastError()返回5
如果不掉用该寒暑,那么就没问题,这是怎么回事啊?
long L = 0;
L = _filelength(f);
_close(f);m_lpFile = fopen(lpszFile, "w+");
当调用_filelength过后,后面的fopen函数就总是返回0,GetLastError()返回5
如果不掉用该寒暑,那么就没问题,这是怎么回事啊?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货