Re: saving an image from a webpage
- From: "Avik" <avikray84@xxxxxxxxx>
- Date: 19 Jun 2006 23:53:09 -0700
hi igor,
thanks again. can u please tell me the syntax of get_useMap? how does
it distinguish maps from any other image, if at all it does?
thanks,
avik
Igor Tandetnik wrote:
"Avik" <avikray84@xxxxxxxxx> wrote in message
news:1150702050.432736.145470@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
hi igor and others,
this newbie needs ur help once again. i'm trying to save an image of a
map by programmatically submitting it's coordinates on
http://samples.thinkgeo.com/GeoCodeUSASampleApps/GeoCodeUSASample.aspx
IHTMLImgElement* pImgElem;
hr = pDis->QueryInterface( IID_IHTMLImgElement, (void
**)&pImgElem );
if ( hr == S_OK )
{
pImgElem->get_alt(&bstr);
That image doesn't have an alt= attribute. You get empty string here.
Did you mean to use get_useMap?
strTag=bstr;
MessageBox(strTag);
if(strTag=="#pointmap") // ID of the map image
Hence this check fails.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- Re: saving an image from a webpage
- From: Igor Tandetnik
- Re: saving an image from a webpage
- References:
- saving an image from a webpage
- From: Avik
- Re: saving an image from a webpage
- From: Igor Tandetnik
- saving an image from a webpage
- Prev by Date: Re: How to close/destroy IWebBrowser cleanly ?
- Next by Date: Re: saving an image from a webpage
- Previous by thread: Re: saving an image from a webpage
- Next by thread: Re: saving an image from a webpage
- Index(es):
Relevant Pages
|
|