| | |
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 code coding compile compiler console conversion count database delete deploy desktop developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker list loop looping loops map math memory multiple news node number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference rpg sorting string strings struct temperature template test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





