// XFilePathName.cpp: implementation of the XFilePathName class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "XFilePathName.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// XFilePathName::XFilePathName() { m_sPathName=_T(""); m_sDriver=_T(""); m_sDir=_T(""); m_sFileName=_T(""); m_sFileExt=_T(""); } XFilePathName::XFilePathName(LPCTSTR lpStr) { m_sPathName=lpStr; splitMe(); } XFilePathName::~XFilePathName() { } void XFilePathName::splitMe() { TCHAR drive[_MAX_DRIVE]=_T(""), dir[_MAX_DIR]=_T(""), fname[_MAX_FNAME]=_T(""), ext[_MAX_EXT]=_T(""); _tsplitpath((LPCTSTR)m_sPathName, drive, dir, fname, ext); m_sDriver=drive; m_sDir=dir; m_sFileName=fname; m_sFileExt=ext; } BOOL XFilePathName::setPathName(LPCTSTR lpStr) { m_sPathName=lpStr; splitMe(); return TRUE; }