View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Akihito Yamashiro[_2_] Akihito Yamashiro[_2_] is offline
external usenet poster
 
Posts: 14
Default if I create a BSTR in C++, do I need to release it ?

Sorry , I have not noticed that you are using _bstr_t until now.
What you have said is right.
The _bstr_t class automatically doesSysFreeString for you in its
destructer.
You don't have to do SysFreeString in this case.