100 likes | 303 Views
Setting Up The DLL Project. To Set Up The DLL Project Click Start , point to SmartTag , point to Demo , and then click Demo StuendSmartTag VB Project to open the demo project in Visual Basic.
E N D
Setting Up The DLL Project To Set Up The DLL Project • Click Start, point to SmartTag, point to Demo, and then click Demo StuendSmartTag VB Project to open the demo project in Visual Basic. • Click Start, point to SmartTag, point to Demo, and then click Demo.txt to open the Demo.txt file. Use the Demo.txt file to cut and paste code names into the Microsoft Visual Basic project. Setting Up The DLL Project
Implementing the Recognizer Interface and Code Implementing the Recognizer Interface and Code To Implement the Recognizer Interface and Code • Click the Visual Basic icon in the Taskbar to make Visual Basic the active window, and then double-click the SmartTagRecognizer.cls class module in the Projectwindow. Maximize the code window. • Place your cursor in the ISmartTagRecognizer_PrgID property, in the empty line above the End Property. • In the Demo.txt file, copy and paste the Recognizer ProgID code from the text file into the ISmartTagRecognizer_ProgId property, in the empty line above the End Property. • In the Demo.txt file, copy and paste the Recognizer Name code from the text file into the ISmartTagRecognizer_Name property, in the empty line above the End Property. • In the Demo.txt file, copy and paste the RecognizerDescription code into the ISmartTagRecognizer_Desc property, in the empty line above the EndProperty.
Implementing the Recognizer Interface and Code Implementing the Recognizer Interface and Code (cont.) To Implement the Recognizer Interface and Code (cont..) • In the Demo.txt file, copy and paste the Recognizer Smart Tag Count code into the ISmartTagRecognizer_SmartTagCount property, in the empty line above the End Property. • In the Demo.txt file, copy and paste the Recognizer Smart Tag Name code into the ISmartTagRecognizer_SmartTagName property, in the empty line above the End Property. • In the Demo.txt file, copy and paste the Recognizer Smart Tag Download URL code into the ISmartTagRecognizer_SmartTagDownloadURL property, in the empty line above the End Property. • In the Demo.txt file, copy and paste the Recognizer Recognize code into the ISmartTagRecognizer_Recognize sub, in the empty line above the End Sub.
Implementing the Action Interface and Code Implementing the Action Interface and Code To Implement the Action Interface and Code • Double-click the SmartTagAction.cls class module in the Projectwindow. Maximize the code window. • Place your cursor in the ISmartTagAction_ProgID property, in the empty line above the End Property. Cut and paste the Action ProgID code into the ISmartTagAction_ProgID property, in the empty line above the End Property. • In the Demo.txt file, copy and paste the Action Name code into the ISmartTagAction_Name property, in the empty line above the End Property. • In the Demo.txt file, copy and paste the Action Description code into the ISmartTagAction_Desc property, in the empty line above the End Property.
Implementing the Action Interface and Code Implementing the Action Interface and Code(cont.) To Implement the Action Interface and Code (cont.) • In the Demo.txt file, copy and paste the Action Count code into the ISmartTagAction_SmartTagCount property, in the empty line above the End Property. • In the Demo.txt file, copy and paste the Action Smart Tag Name code into the ISmartTagAction_SmartTagName property, in the empty line above the End Property. • In the Demo.txt file, copy and paste the Action Caption code into the ISmartTagAction_SmartTagCaption property, in the empty line above the End Property. • In the Demo.txt file, copy and paste the Action Verb Count code into the ISmartTagAction_VerbCount property, in the empty line above the End Property.
Implementing the Action Interface and Code Implementing the Action Interface and Code(cont.) To Implement the Action Interface and Code (cont.) • In the Demo.txt file, copy and paste the Action VerbID code into the ISmartTagAction_VerbID property, in the empty line above the End Property. • In the Demo.txt file, copy and paste the Action VerbCaptionFromID code into the ISmartTagAction_VerbCaptionFromID property, in the empty line above the End Property. • In the Demo.txt file, copy and paste the ActionVerbNameFromID code into the ISmartTagAction_VerbNameFromID property, in the empty line above the End Property. • In the Demo.txt file, cut and paste the Action_InvokeVerb code into the ISmartTagAction_InvokeVerb sub, in the empty line above the End Sub.
Compiling the Source Code into a DLL Compiling the Source Code into a DLL To Compile the Source Code into a DLL • In Visual Basic, click File, and then click Save Project. • Click File, click Make StudentSmartTage.dll…, and then click OK.
Testing the DLL Testing the DLL To Test the DLL • Click Start, point to Programs, and then click Microsoft Word. • Type Jane and press ENTER. (You can also use Sally, Bob, Mike, Fred or Jack. • Move the cursor over the Smart Tag. Notice the icon that appears. Click the icon. • Click View Student Information. • This will bring up the student’s database interface. From this interface, you can view and edit the student’s grades and comments stored in the database directly. • Close Word without saving any changes.