New Sample Available: Two Applications Share a HostID Sample

I posted a new sample today which goes with my previous blog.  This sample demonstrates many of the host Application, hostID, proxy and entry point combiniations outlined in the Application, HostID, Proxy, and EntryPoint Associations blog.  If there is another combination you are interested in or if you have any questions on the sample, please leave a comment.


Excerpt  from the
Two Applications Share a HostID Sample:

This sample demonstrates how two applications can share one host ID. 

There are two applications which share a common base type library:  Applicatoin_A and Application_B share the SharedLib library.  Application_B is based on Application_A with additional methods. 

Each application has its own entry point type, Applicatoin_A .ApplicationA and Applicatoin_B.ApplicationB, and the shared base type library has an entry point type SharedLib.SharedApplication.  Both applications have a HostItemProvider which can return the entry point for its application or the SharedLib.SharedApplication. 

Application_A can load and run add-ins written for the entry points ApplicationA and SharedApplication, but not ApplicationB add-ins.

Application_B can load and run add-ins written for the entry points ApplicationB and SharedApplication, but not Application_A add-ins. 

Application_A  and Application_B can both debug at the same time (using different macro projects) using the same HostID.  Application_A uses a macro project based on the ApplicationA_Template.  Application_B uses a macro project based on the ApplicationB_Template. 

Results:

  • It is possible to use the same hostID for different applications and debug them concurrently
  • It is possible for an application to load and run add-ins, so long as the add-in is compatible with the host (the HostItemProvider must return the entry point type of the add-in).

Posted Nov 18 2008, 04:31 PM by Melody
Filed under: ,
Copyright Summit Software Company, 2008. All rights reserved.