[ATL] Add CComBSTR.Attach

This commit is contained in:
Mark Jansen 2017-12-24 01:27:06 +01:00
parent 9187a81538
commit 6c92d5c14a

View file

@ -301,6 +301,12 @@ public:
return *this;
}
void Attach(BSTR bstr)
{
::SysFreeString(m_str);
m_str = bstr;
}
BSTR Detach()
{
BSTR str = m_str;