Registering Your Extension

[Previous] [Next]

Now that you know how to create an extension, let's examine how to register one. You must register an extension for each template that will use it. Under the registry key for the template that will use the extension, you must provide two new values: ExtensionClass and ExtensionSteps. ExtensionClass is a string that specifies the ProgID of your extension DLL. ExtensionSteps is an integer that specifies the number of steps your extension will add to the wizard. You can have multiple steps in your extension, so this number is not limited to 1. However, you will need to code the navigation for your extension in order to call your Visual Basic forms. For example, if your extension contains two Visual Basic forms, the first form must implement under its Next button the code to hide itself and to show the second Visual Basic form. Figure 9-24 shows the registration for the Account Tracking extension.

click to view at full size.

Figure 9-24. The registration for the Account Tracking extension as part of a custom Team Folders template.



Programming Microsoft Outlook and Microsoft Exchange
Programming Microsoft Outlook and Microsoft Exchange, Second Edition (DV-MPS Programming)
ISBN: 0735610193
EAN: 2147483647
Year: 2000
Pages: 184

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net