_tfindfirst(), _findclose(), _tfindnext() C++遍历文件夹函数在win10在崩溃的问题

作者: admin 分类: C++,CAD,ObjectARX 发布时间: 2021-02-05 18:33

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

如果觉得我的文章对您有用,请随意赞赏。您的支持将鼓励我继续创作!

发表评论

标签云