Ok, I believe it has something to do with the dirent.h code, but I may be mistaken.
This is the function,
and it produces this Runtime error
d = opendir("C:\\C++Projects\\X_Crypt\\reports\\");
while ((dir = readdir(d)) != NULL)
file = dir->d_name;
if ( file.substr(file.size()-4) == ".xtr" )
file = "C:\\C++Projects\\X_Crypt\\reports\\" + file;
I cant seem to find what the error is in the code. I am very thankful for any assistance you provide.
This application has requested the Runtime to terminate in an unusual way.
I figured out that the error is the
, but I don't see what is wrong with the code.
if ( file.substr(file.length()-4) == ".xtr" )