////////////////////////////////////////////////////////////////////////////// //文件 Name.h //主要功能: // //程序编写: 2005-12-07 ///////////////////////////////////////////////////////////////////////////// #pragma once class AFX_EXT_CLASS CName { public: CName(LPCTSTR lpName=NULL); virtual ~CName(void); virtual CString GetName(void); virtual int SetName(LPCTSTR lpString); virtual void Clear(void); virtual void Serialize(CArchive& ar, const short &ver); void operator=(CName& nm); void operator=(CString str); BOOL operator==(CString str); BOOL IsEmpty(void); int GetLength(void); protected: CString name; };