当前位置:网站首页>_ FindText error
_ FindText error
2022-04-23 17:53:00 【ppipp1109】
ps: Compile environment qt + mingw32 No problem compiling ;
Switch to qt + msvc 2017_64 There's a problem ;
Error message :
Stopped in thread 0 by: Exception at 0x7ffbcfe713ad, code: 0xc0000005: write access violation at: 0xffffffffd587d380, flags=0x0 (first chance).
// Get all file names in the directory
void getFiles(string path, vector<string>& files)
{
// File handle
long hFile = 0;
// file information
struct _finddata_t fileinfo;
string p;
if ((hFile = _findfirst(p.assign(path).append("\\*").c_str(), &fileinfo)) != -1)
{
do
{
// If it's a catalog , Iterative
// If not , Join list
if ((fileinfo.attrib & _A_SUBDIR))
{
if (strcmp(fileinfo.name, ".") != 0 && strcmp(fileinfo.name, "..") != 0)
getFiles(p.assign(path).append("\\").append(fileinfo.name), files);
}
else
{
files.push_back(p.assign(path).append("\\").append(fileinfo.name));
}
} while (_findnext(hFile, &fileinfo) == 0);
_findclose(hFile);
}
}
When applying the following function , Report the error above . Tossed all afternoon , At first, I thought it was a coding format problem , The final discovery is 64 Bit compiler , The value of the feedback structure is 64 position , Defined long type hFile Will be cut off , Not right .
So will long hfile Change it to
intptr_t hFile
perhaps
long long hFIle
版权声明
本文为[ppipp1109]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230549075533.html
边栏推荐
- Open futures, open an account, cloud security or trust the software of futures companies?
- Summary of floating point double precision, single precision and half precision knowledge
- Examination question bank and online simulation examination of the third batch (main person in charge) of special operation certificate of safety officer a certificate in Guangdong Province in 2022
- Leak detection and vacancy filling (VIII)
- Detailed deployment of flask project
- 470. 用 Rand7() 实现 Rand10()
- ES6 face test questions (reference documents)
- 1217_ Generating target files using scons
- [二叉数] 二叉树的最大深度+N叉树的最大深度
- QT modification UI does not take effect
猜你喜欢

QT modification UI does not take effect

958. 二叉树的完全性检验

.104History
![Click Cancel to return to the previous page and modify the parameter value of the previous page, let pages = getcurrentpages() let prevpage = pages [pages. Length - 2] / / the data of the previous pag](/img/ed/4d61ce34f830209f5adbddf9165676.png)
Click Cancel to return to the previous page and modify the parameter value of the previous page, let pages = getcurrentpages() let prevpage = pages [pages. Length - 2] / / the data of the previous pag

470. Rand10() is implemented with rand7()

2022制冷与空调设备运行操作判断题及答案
![C1 notes [task training part 2]](/img/10/48f7490a6c097f2b178ae948cb2c91.png)
C1 notes [task training part 2]

Anchor location - how to set the distance between the anchor and the top of the page. The anchor is located and offset from the top

102. Sequence traversal of binary tree

2022江西光伏展,中國分布式光伏展會,南昌太陽能利用展
随机推荐
Welcome to the markdown editor
MySQL advanced index [classification, performance analysis, use, design principles]
Leak detection and vacancy filling (VII)
Gets the time range of the current week
ES6
On the problem of V-IF display and hiding
Amount input box, used for recharge and withdrawal
Hcip fifth experiment
Comparison between xtask and kotlin coroutine
239. Maximum value of sliding window (difficult) - one-way queue, large top heap - byte skipping high frequency problem
48. Rotate image
MySQL_01_简单数据检索
386. Dictionary order (medium) - iteration - full arrangement
Construction of functions in C language programming
31. 下一个排列
Flask项目的部署详解
Future 用法详解
394. String decoding - auxiliary stack
SystemVerilog(六)-变量
极致体验,揭晓抖音背后的音视频技术