Lines Matching refs:m_str
84 BSTR m_str; variable
87 CMyComBSTR(): m_str(NULL) {} in CMyComBSTR()
88 CMyComBSTR(LPCOLESTR src) { m_str = ::SysAllocString(src); } in CMyComBSTR()
91 CMyComBSTR(const CMyComBSTR& src) { m_str = src.MyCopy(); } in CMyComBSTR()
101 ~CMyComBSTR() { ::SysFreeString(m_str); } in ~CMyComBSTR()
104 if (m_str != src.m_str)
106 if (m_str)
107 ::SysFreeString(m_str);
108 m_str = src.MyCopy();
114 ::SysFreeString(m_str);
115 m_str = ::SysAllocString(src);
119 operator BSTR() const { return m_str; } in BSTR()
120 BSTR* operator&() { return &m_str; }
123 int byteLen = ::SysStringByteLen(m_str); in MyCopy()
125 memcpy(res, m_str, byteLen); in MyCopy()
139 ::SysFreeString(m_str); in Empty()
140 m_str = NULL; in Empty()
142 bool operator!() const { return (m_str == NULL); }