| | |
Iterator assertion failure. How?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2007
Posts: 979
Reputation:
Solved Threads: 209
•
•
•
•
"." should be found and displayed, but it isn't.
...
long nHandle = _findfirsti64(s_filename.c_str(), &struct_filedata);
if(nHandle >= 0)
{
cout << "First match is: " << struct_filedata.name << '\n';
while(_findnexti64(nHandle, &struct_filedata) == 0)
{
...
}•
•
•
•
You are missing the initial match ...
... long nHandle = _findfirsti64(s_filename.c_str(), &struct_filedata); if(nHandle >= 0) { cout << "First match is: " << struct_filedata.name << '\n'; while(_findnexti64(nHandle, &struct_filedata) == 0) { ... }
•
•
Join Date: Nov 2007
Posts: 979
Reputation:
Solved Threads: 209
•
•
•
•
If you mean _findfirsti46(), then no. It isn't counted as first result.
_findfirst, _findfirsti64, _wfindfirst, _wfindfirsti64
Provides information about the first instance of a filename that matches the file specified in the filespec argument.
http://msdn.microsoft.com/en-us/libr...69(VS.60).aspx
So, the function takes the struct _finddatai64_t * as input for a good reason.
Last edited by mitrmkar; May 18th, 2008 at 8:37 am. Reason: _finddatai64_t
![]() |
Similar Threads
- Debug Assertion Failure (Web Browsers)
Other Threads in the C++ Forum
- Previous Thread: create blank charaters (white spaces)
- Next Thread: bubble sort
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamic dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library lines linker list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg simple sorting string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets





