Solved

IHTMLImgElement::put_src(BSTR) does not work?

Posted on 2002-04-29
2
491 Views
Last Modified: 2013-11-20
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?
0
Comment
Question by:iProgram
2 Comments
 
LVL 12

Accepted Solution

by:
migel earned 100 total points
ID: 6979695
Hi!
>>src=L"c:\\images\face.gif";
must be src=L"c:\\images\\face.gif";
0
 
LVL 1

Author Comment

by:iProgram
ID: 6979763
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

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now