Re: saving an image from a webpage



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

.



Relevant Pages

  • Re: Boot drivers namespace
    ... > Arc names are assigned during the computer boot by BIOS boot order detected from ntldr/ntdetect. ... I will try to use this syntax ASAP. ...
    (microsoft.public.development.device.drivers)
  • Re: Boot drivers namespace
    ... > Arc names are assigned during the computer boot by BIOS boot order detected from ntldr/ntdetect. ... I will try to use this syntax ASAP. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Boot drivers namespace
    ... > Arc names are assigned during the computer boot by BIOS boot order detected from ntldr/ntdetect. ... I will try to use this syntax ASAP. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Boot drivers namespace
    ... > Arc names are assigned during the computer boot by BIOS boot order detected from ntldr/ntdetect. ... I will try to use this syntax ASAP. ...
    (microsoft.public.development.device.drivers)
  • Re: Boot drivers namespace
    ... > Arc names are assigned during the computer boot by BIOS boot order detected from ntldr/ntdetect. ... I will try to use this syntax ASAP. ...
    (microsoft.public.win32.programmer.kernel)