• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 287
  • Last Modified:

Embedding an HTM in a DLL

I've seen this done somehow by Microsoft in handling their web views in Microsoft Outlook.  Checking the home page location of the default root folder yields:

res://C:\Program Files\Microsoft Outlook\OFFICE11\1033\outlwvw.dll/outlook1.htm

I'm ASSUMING (probably my first mistake) that the outlook1.htm file was somehow compiled (perhaps as an embedded resource?) in the outlwvw.dll ...

Anyone lead me in the right direction as to how this is handled??  Thanks.
0
jigdog
Asked:
jigdog
  • 3
  • 3
1 Solution
 
Bob LearnedCommented:
Working with embedded resource in dot net assembly.
http://www.dotnetspider.com/technology/KBPages/442.aspx

Bob
0
 
jigdogAuthor Commented:
This link shows how to embed a resource and use the resource from WITHIN the dll, programatically.  I am, on the other hand, trying to embed the resource and then call the file by simply using a path name.  The example in my first post is the best I can find.  If you are using Outlook 2003 (not sure on the others), right click your main root folder and check the url for the 'Today' page.  It is a link to an htm file that is somehow 'embedded' in outlwvw.dll ... How do I do this??
0
 
Bob LearnedCommented:
It should be fairly easy to extend that code to access a resource embedded in another assembly.

In the example, there is a definition for an executing assembly:

Dim executing_assembly As System.Reflection.Assembly = _
    Me.GetType.Assembly.GetEntryAssembly()

Replace that line with this one, to get an assembly from a file:
    Dim executing_assembly As [Assembly] = [Assembly].LoadFrom(Path)

Bob
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
jigdogAuthor Commented:
Hold on ... I don't think I'm being clear ... I do not want to access the resource programatically AT ALL.  Please refer to the example:

Microsoft encloses a DLL called outlwvw.dll with Outlook 2003

The outlwvw.dll is called as follows in the options for the URL homepage of the root folder:

res://C:\Program Files\Microsoft Outlook\OFFICE11\1033\outlwvw.dll/outlook1.htm

rather than some http://xxx.xxx.xxx/page.htm

This means (I think) that the outlook1.htm file is somehow embedded in the DLL, and can be opened just like a file by using that pathname.  How is this achieved?
0
 
Bob LearnedCommented:
0
 
jigdogAuthor Commented:
Looks like we have a winner.  Thanks for your help.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now