Calling Word from a WLL

To call Word with the Word API, a WLL fills WDOPR data structures with data that is meaningful to a Word function, and then sends the structures through the wdCommandDispatch function, which identifies the Word function to use. The WDOPR data structure and wdCommandDispatch are discussed in detail in the following sections. The CAPILIB functions provided on the Microsoft Word Developer's Kit disk wrap up many of the steps required to build arrays of WDOPRs, and they help perform common WLL tasks, such as customizing Word.

Use the sections on wdCommandDispatch ("The wdCommandDispatch Function"), WDOPRs ("The Word Operator (WDOPR)"), and basic Word API techniques ("Techniques for Successful Calling") to learn about the Word API in general and some platform-specific issues. Then use the section on CAPILIB ("Using the CAPILIB Functions") to get an overview of the helper functions you can use to program WLLs quickly and efficiently.