How to create a resource-only DLL to host an Outlook Today page (319616)
The information in this article applies to:
- Microsoft Office Outlook 2003
- Microsoft Outlook 2000
- Microsoft Visual C++, 32-bit Editions 6.0
This article was previously published under Q319616 INTRODUCTION
This article describes how to build a resource-only DLL to host an HTML page. This HTML page can be used as a folder home page or as an Outlook Today page. You will build a DLL without the help of any other code having been provided. For more information about customizing Outlook Today, see the "References" section. back to the topSampleTo build a resource-only DLL for use as an Outlook Today page, follow these steps: - In Microsoft Visual C++, create a simple DLL project.
- To add a resource script file to the project, click New on the File menu, and then click Add.
- In the project explorer Resource view, insert a new HTML type resource.
To do so, click Project, point to Add Resource, click HTML, and then click New. - In the Properties dialog box of the new HTML resource, change the ID property to "Myoutlook.htm". Make sure that you include the quotation marks.
- Paste the following HTML in the new HTML resource file:
<html>
<head>
<title>My Outlook Today</title>
</head>
<body>
This is a simple Resource DLL
<p>
<img border="0" src="clock.gif"></p>
</body>
</html> - Use Import to add another resource, and then import a .gif file.
- Set the Resource type to HTML.
- Change the ID property of the resource to "clock.gif". (Include the quotation marks because this is how the resource is referenced in the HTML.)
Note The Microsoft Visual C++ IDE corrupts the .gif format of the image when the .gif file is imported as an HTML resource. Copy a clean copy of the .gif file over the imported file in the DLL project folder.
Alternatively, to avoid the .gif file format becoming corrupted, follow these steps: - Copy all the .gif files that you need to the DLL project folder.
- Close the project, and then manually edit the resource script file to add the .gif files.
Use a text editor such as Notepad to open the resource script file. You can expect the format of the resource script file to be easy to understand after you have added at least one HTML page as an HTML resource.
- Compile the DLL.
- Set this Myoutlook.htm file as a folder home page or as an Outlook Today page by using the resource protocol. For example, use the
full Res:// path of the DLL/Myoutlook.htm
file.
back to the topREFERENCESFor more information about creating a resource-only DLL, visit the following MSDN Web site:
For additional information about customizing Outlook Today, click the following article number to view the article in the Microsoft Knowledge Base:
236081
Finding information about customizing Outlook Today
back to the top
Modification Type: | Major | Last Reviewed: | 4/30/2004 |
---|
Keywords: | kbHOWTOmaster kbMsg KB319616 kbAudDeveloper |
---|
|