Update an href on an IHTMLLinkElement
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 execu开发者_如何学Pythonte
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
Try checking if RPC service is enabled and running ...
精彩评论