Removing the trailing file name and backslash from a path
Sometimeswewouldliketoremovethetrailingfilenameandbackslashfromapath.Inthefollowing,thereareseveraldifferentways tomakeitandIamgladtosharewithyou.[1]MFC下的方法,使用CString类的ReserveFind、Left成员函数。CStringstrP