CString WINAPI GetFileExt(CString strTemp) { int k=strTemp.ReverseFind('.'); if(k>=0) return strTemp.Mid(k); else return strTemp; }