code_junkie

Should there be a difference between an empty BSTR and a NULL BSTR?

Nov 11th, 2011
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. // Empty BSTR
  2. CComBSTR empty(L""); // Or SysAllocString(L"")
  3. someObj->Foo(empty);
  4.  
  5. // NULL BSTR
  6. someObj->Foo(NULL);
Add Comment
Please, Sign In to add comment