I\'m trying to convert all backslashes () to forward slashes (/) in a variable which contains a file name and location. I\'ve read about this and seen:
%vari
This will work for change the backslashe to forward slashes in windows:
typedef std::basic_string tstring; tstring pathbasic = tstring(programdata) + _T("\\myfile.txt"); std::replace(pathbasic.begin(), pathbasic.end(), _T('\\'), _T('/'));