IHTMLImgElement::put_src(BSTR) does not work?

Hi experts,
I try to use IHTMLImgElement::put_src(BSTR) to set the <img src="xxx.gif"> tag, but it does not work.

The html document is the following codes:
<img src="../images/face.gif">
I want to change it to:
<img src="C:/images/face.gif">
I have already got the printer of IHTMLImgElement:

src=L"c:\\images\face.gif";
p->put_src(src);

Does not work>;\

BTW: i want to set the value of <A href"xxx" tag, too. How to do it?
LVL 1
iProgramAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
migelConnect With a Mentor Commented:
Hi!
>>src=L"c:\\images\face.gif";
must be src=L"c:\\images\\face.gif";
0
 
iProgramAuthor Commented:
No, this is only a mistake of my writting.

I change it to src=L"c:\\images\\face.gif"; and it still does not work.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.