Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

IHTMLImgElement::put_src(BSTR) does not work?

Posted on 2002-04-29
2
Medium Priority
?
522 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 200 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli‚Ķ
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
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.
Suggested Courses

916 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