jigdog
asked on
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\outl wvw.dll/ou tlook1.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.
res://C:\Program Files\Microsoft Outlook\OFFICE11\1033\outl
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.
ASKER
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??
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.GetEnt ryAssembly ()
Replace that line with this one, to get an assembly from a file:
Dim executing_assembly As [Assembly] = [Assembly].LoadFrom(Path)
Bob
In the example, there is a definition for an executing assembly:
Dim executing_assembly As System.Reflection.Assembly
Me.GetType.Assembly.GetEnt
Replace that line with this one, to get an assembly from a file:
Dim executing_assembly As [Assembly] = [Assembly].LoadFrom(Path)
Bob
ASKER
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\outl wvw.dll/ou tlook1.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?
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\outl
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Looks like we have a winner. Thanks for your help.
http://www.dotnetspider.com/technology/KBPages/442.aspx
Bob