Hi,
From my current active build editor I am getting the filename (easy : cbEditor::GetFileName). Next I want to have the path of it.
So I do a very stupid search on the last '\'. (on winblows that is ...)
int pos = Filename.find(_T('\\'), true), where the second argument means find from the end of the string.
It seems that the second arg is of no importance, I get an identical result as if I would specify false, == search from the start.
My filename is for example : "D:\dir\test.cpp", search from begining (false), or the end (true) both return position 2.
Anyone else stumbled across this problem ??
kind regards,
Lieven