I need to update the contents of an href on an IHTMLLinkElement. What I've come up compiles but causes an error as soon as it's execute
static const CComBSTR href(L"http://www.google.com");
spLinkElement->put_href(href); // IHTMLLinkElement
The error I get is
Program: C:\Program Files\Internet Explorer\IEXPORER.EXE
File: c:\program files\microsoft visual studio 8\vc\atlmfc\include\atlcomcli.h
Line: 154