You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitlib.pub/MITLIB/Utility/MyString.h

39 lines
924 B
C++

// MyString.h: interface for the CMyString class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MYSTRING_H__537F8841_1127_436C_8AB8_FEADB9FA2091__INCLUDED_)
#define AFX_MYSTRING_H__537F8841_1127_436C_8AB8_FEADB9FA2091__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifdef BUILD_UTILITYDLL
#define UTILITYDLL __declspec(dllexport)
#else
#define UTILITYDLL __declspec(dllimport)
#endif
class UTILITYDLL CMyString
{
public:
CMyString();
explicit CMyString(LPCTSTR rsh);
virtual ~CMyString();
LPCTSTR operator=(LPCTSTR rsh);
LPCTSTR operator+=(LPCTSTR rsh);
LPCTSTR GetBuffer();
private:
enum
{
MAX_BUFFER_SIZE = 2000,
};
TCHAR m_cBuffer[MAX_BUFFER_SIZE + 1];
};
#endif // !defined(AFX_MYSTRING_H__537F8841_1127_436C_8AB8_FEADB9FA2091__INCLUDED_)