hello again
I have this variable dirpath2 where I store the deepest directory name of a path:
typedef std::basic_string<TCHAR> tstring;
tstring dirPath = destPath;
tstring dirpath2 = dirPath.substr(destPathLenght - 7,destPathLenght - 1);
I want to be able to compare it it another string, something like:
if ( _tcscmp(dirpath2,failed) == 0 )
{
...
}
I've tried a lot of things but nothing seems to work. Can anyone tell me how to do this or what am I doing wrong?
Please bear in mind I know almost next to nothing about C++ and this whole thing is driving me insane.
thanx in advance