Title: To Set Up The DLL Project
1(No Transcript)
2Setting 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. - 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.
3Implementing 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 Project window. Maximize the code
window. - Place your cursor in the ISmartTagRecognizer_PrgI
D 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
Recognizer Description code into the
ISmartTagRecognizer_Desc property, in the empty
line above the End Property.
4Implementing 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.
5Implementing 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 Project window. 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.
6Implementing 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_Smart
TagName property, in the empty line above the End
Property. - In the Demo.txt file, copy and paste the Action
Caption code into the ISmartTagAction_SmartTagCapt
ion 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.
7Implementing 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 Action
VerbNameFromID code into the ISmartTagAction_VerbN
ameFromID 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.
8Compiling 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.
9Testing 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 students database
interface. From this interface, you can view and
edit the students grades and comments stored in
the database directly. - Close Word without saving any changes.
10(No Transcript)