You will mostly need this when you have some OLE function that returns a 'BSTR'. Such an OLE Function will basically do something like this:
Use a temporary variable of the type '_bstr_t' to wrap the 'BSTR'. This way you handle both the 208 and make sure that you have no memory leak:
Code:
Note, that this won't work in a UNICODE build.