| | |
Iterator assertion failure. How?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2007
Posts: 978
Reputation:
Solved Threads: 208
•
•
•
•
"." 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: 978
Reputation:
Solved Threads: 208
•
•
•
•
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 |
api array based beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamiccharacterarray email encryption error file forms fstream function functions game getline google graph homeworkhelper iamthwee ifstream input int integer java lib linkedlist linux list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text tree unix url vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





