Rules for Freeing BSTRs in OLE Automation
Article ID: 108934
Article Last Modified on 12/3/2003
APPLIES TO
- Microsoft OLE 2.01
- Microsoft OLE 4.0, when used with:
- Microsoft Windows NT 3.51 Service Pack 5
- Microsoft Windows 2000 Standard Edition
This article was previously published under Q108934
SUMMARY
The callee frees a BSTR passed in as a by-reference parameter before
assigning the parameter a new value. In all other cases, the caller frees
the BSTR.
Additional query words: 2.01 3.50 4.00
Keywords: kbprogramming kbautomation KB108934