__LINE__
1234
#include <shlwapi.lib> TCHAR path[] = _T("C:\Users\CPlusPlus\Desktop\CPlusPlusDemos\C++.cpp"); PathRemoveFileSpec(path); // path will now contains C:\Users\CPlusPlus\Desktop\CPlusPlusDemos
#include <shlwapi.lib>
TCHAR