1 / 10

Setting Up The DLL Project

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.

alexia
Télécharger la présentation

Setting Up The DLL Project

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

More Related