title: Accessing resources in registered .NET DLL via res protocol
body: <p>I have a .NET DLL that I register with regasm.exe as a Browser Helper Object. I embedded several Win32 resources in the DLL using .res files and /win32 switch to csc.exe.</p>
  
  <pre><code>image.png   HTML    "image.png"
  </code></pre>
  
  <p>I am able to access the resources using the <a href="http://msdn.microsoft.com/en-us/library/ie/aa767740%28v=vs.85%29.aspx" rel="nofollow noreferrer">res protocol</a> <em>as long as I include the absolute path of the DLL</em>.</p>
  
  <pre><code>res://C:\Path\To\My\Dll\Assembly.dll/image.png
  </code></pre>
  
  <p>This is rather unfortunate. I would much rather just reference the assembly name as I have seen in many other <a href="https://stackoverflow.com/questions/439181/ie-web-browser-control-res-usage">examples</a>:</p>
  
  <pre><code>res://Assembly.dll/image.png
  </code></pre>
  
  <p>But this results in an error because the browser can't find the resource.</p>
  
  <p>Ideas?</p>