Dynamically load a module.

Topics: CAB & Smart Client Software Factory
Nov 22, 2005 at 12:14 AM
originally posted by: dfanning

What's the recommended way of dynamically loading a CAB module containing a workitem?

A have a simple menu and the operation of which is controlled by a workItem, use the user clicks on a menu item this should dynamically load the chosen application (contrined within the CAB module).

I don't want references to the various applications be be held within the menu (shell).

This requirement would be similar to the BankTeller if the CustomerWorkItem was in a diffrent module that had to be loaded.

I've been looking the ModuleLoaderService which takes a array of IModule and load them. Is this the recommended approach?


Nov 26, 2005 at 8:41 AM
originally posted by: BradWilsonMSFT

Yes, you should use the IModuleLoaderService to load modules for you at runtime, as you've described.