I hit the ball, rolling myself first, with which I stumbled again:
Do not pass literal strings to functions that require BSTR parameters. See the comments section here .
CComPtr<IFoo> foo; foo->bar("Bletch!");
Use ... instead
foo->bar(CComBSTR("Bletch!"));
source share