开发者

Update an href on an IHTMLLinkElement

开发者 https://www.devze.com 2023-01-22 14:10 出处:网络
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

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 ...

0

精彩评论

暂无评论...
验证码 换一张
取 消