Internet Explorer does not displat an image

Отвечено Internet Explorer does not displat an image

  • 11 мая 2012 г. 22:28
     
     

    This is part of VC++ development, but has something to do wit IE that I am launching from my program. The problem can be narrow down to this.....

    I have an htm file containing some gif image in it.

    When I display it by IE (by double-clicking), it shows the image correctly. The image location is specified by an absolute address in my local C:\ drive. (as shown below)

    However, if I copy this same htm file to a network drive, and double-click it, IE show the file OK, but the image portion is missing from the display. Is this a restriction of IE?

    Makoto

    <

    td width="31%"><img border="0" src="C:\Program Files (x86)\SUR\SU6\images\AAA.gif" width="2

Все ответы

  • 12 мая 2012 г. 7:45
     
     Отвечено

    Hi,

    Usually in a vc project you bundle your html and its resources (images, scripts and css files) into a dll resource file and don't use file paths as all resources re located within the context of the dll file. You would call the html file from the dll using the res: protocol.

    In your case your server does not have aaa.gif located on its c drive...

    I would suggest you do a web search for 'resource dll files vc++'


    Rob^_^

    • Предложено в качестве ответа doctoroftypeMVP 12 мая 2012 г. 7:46
    • Помечено в качестве ответа mh1000 14 мая 2012 г. 15:45
    •