#ifndef __CString_h
#define __CString_h

class MfcString
{
public:
// Constructors

	// constructs empty MfcString
	MfcString ();
	MfcString (LPCSTR lpsz);

// Attributes & Operations

	// get data length
	int GetLength() const;

	// clear contents to empty
	void Empty();

	// return pointer to const string
	operator LPCTSTR() const;

	// overloaded assignment

	// copy string content from ANSI string (converts to TCHAR)
	const MfcString& operator=(LPCSTR lpsz);

// Implementation
public:
	~MfcString();

protected:
	LPTSTR m_pchData;   // pointer to ref counted string data
};

#endif//__CString_h
