_tfindfirst(), _findclose(), _tfindnext() C++遍历文件夹函数在win10在崩溃的问题
Execution to the _tfindfirst(), _findclose(), _tfindnext() functions results in an error: 0xC0000005, the program crashes. For example, the following code:
long hand; //the type of hand change from long to long long
hand = _tfindfirst((TCHAR *)sDbfPath, &fb);
if(hand != -1L)
{
bFind = TRUE;
_findclose(hand);
}
You should change the type of hand from long to long long.
C:\ZWCAD_2021_ZRXSDK\DocZRX_Migration_Manual.chm