www.pudn.com > voado.zip > VOString.h


// VOString.h: interface for the CVOString class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_VOSTRING_H__91406803_1D87_4DA9_A5A0_499A88AC4E86__INCLUDED_) 
#define AFX_VOSTRING_H__91406803_1D87_4DA9_A5A0_499A88AC4E86__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
class CVOString   
{ 
public: 
	CVOString(const CVOString& rSrc); 
	CVOString(LPCTSTR pcszValue = TEXT("")); 
	virtual ~CVOString(); 
	operator LPCTSTR() { return (LPCTSTR)m_pBuffer; } 
	DWORD GetLength() { return m_dwLength; } 
	operator =(LPCTSTR pcszValue); 
	BOOL operator == (LPCTSTR pcszValue); 
	LPCTSTR operator += (LPCTSTR pcszAppend); 
protected: 
	BOOL SetMinBufferSize(DWORD dwChars); 
	DWORD m_dwLength; 
	DWORD m_dwBufferSize; 
	TCHAR* m_pBuffer; 
}; 
 
#endif // !defined(AFX_VOSTRING_H__91406803_1D87_4DA9_A5A0_499A88AC4E86__INCLUDED_)