The inline void _bstr_t: : Data_t: : _Free () throw ()
{
If (m_wstr!=NULL) {
: : SysFreeString (m_wstr);
}
If (m_str!=NULL) {
The delete [] m_str;
}
}
The inline _variant_t: : ~ _variant_t () throw ()
{
: : VariantClear (this);
}
There is also a here also often collapse
The great spirit show reason, thank you!
CodePudding user response:
How to use the BSTR and variant of your code?
CodePudding user response:
After the delete and free remember to assign a NULL, avoid wild pointer,
CodePudding user response:
The