I have
const char *pathname = \"..\\somepath\\somemorepath\\somefile.ext\";
how to transform that into
\"..\\somepath\\som
PathRemoveFileSpec(...) you dont need windows 8 for this. you will need to include Shlwapi.h and Shlwapi.lib but they are winapi so you dont need any special SDK