James,
Whenever you reference a URL in a specific directory it becmes the active directory. So if you ref:
/cgi-bin/wc.dll?somequerystrign
/cgi-bin becomes your current directory. If you now reference an image with:
images/someimage.gif you're actually saying look in:
/cgi-bin/images/
for the image. Of course there's no image there.
As Michel suggest you either have to use a more absolute URL off the root (/somvirtual/) or you have to use reverse pathing. For example if your structure is:
/yourapp/
/yourapp/images/
yourapp/cgi-bin/
You can use:
../images/someimage.gif
to get to the image too.
If possible always use relative pathing like the latter as it makes the app more portable.
Another alternative that bypasses this whole mess with cgi-bin is to use scriptmaps. Using scriptmaps it doesn't matter where the actual DLL sits and you can 'naturally' reference any links via the scriptmap in any location.
+++ Rick ---
>I created a West Wind app and am now getting ready to roll it out. I want to put my exe and wc.dll in a cgi_bin subdirectory underneath my webserserver main directory.
>
>c:\inetpub\wwwroot\myproject\cgi_bin
>
>Everthing works except it can't find the graphics. It keeps looking for the graphics directory under: c:\inetpub\wwwroot\myproject\cgi_bin\graphics. The graphics directory is c:\inetpub\wwwroot\myproject\graphics.
>
>Does anyone know how to resolve this issue?