Alexander Serov
April 16th, 1999, 12:39 AM
I've created some component using ATL.
I want my ActiveX property "BSTR m_MyStr" to be persistable.
In order to make IPersistStreamInitImpl to save my property I
added the next string to the property map.
BEGIN_PROP_MAP(CMyControl)
PROP_DATA_ENTRY("_My", m_MyStr, VT_BSTR)
END_PROP_MAP()
But it saves only pointer to my string, not the text.
How can I solve the problem of saving BSTR properties?
Thanks in advance
I want my ActiveX property "BSTR m_MyStr" to be persistable.
In order to make IPersistStreamInitImpl to save my property I
added the next string to the property map.
BEGIN_PROP_MAP(CMyControl)
PROP_DATA_ENTRY("_My", m_MyStr, VT_BSTR)
END_PROP_MAP()
But it saves only pointer to my string, not the text.
How can I solve the problem of saving BSTR properties?
Thanks in advance