Components and Objects in CML/LitCrit
The following diagram shows the four DLLs used by the CML/LitCrit application. CMLC.dll and CML.dll contain components and objects developed for the Corporate Media Library (CML) application featured in Scenario 1. This section describes the changes and additions the F & M developers made to CML.dll to make it work for the combined CML/LitCrit application. LitCrit.dll and LitCritC.dll are the new DLLs created for the CML/LitCrit application. The arrows in the diagram show how the objects and components interact in the CML/LitCrit application. The objects (private classes) are identified by a stippled outline and the COM components (public classes) have a solid outline.
The following components and objects were enhanced or added to support CML/LitCrit functionality:
- Server-side Critique COM component, a new component that handles adds, changes, and deletes to the FmLib SQL Server™ database.
- Search component, created for the previous version of the Corporate Media Library application, has a new method, AdvancedSearch, that performs a full-text search of the FmLib database. This method is called from code in the Choose Title dialog box, a Microsoft® Visual Basic® form.
- Client-side Critique COM component, a new component that shows the Visual Basic forms, Add Critique to Library and Choose Title dialog boxes.
- FoundTitle object, a private class that contains Let and Get properties for title and critique information used in the CML/LitCrit application.
- TitleMatch object, a private class that receives the results of a query (see AdvancedSearch method) on the FmLib database and adds each record to the m_items collection.