home *** CD-ROM | disk | FTP | other *** search
- LIBRARY TestWLL;
- { sample Word6 add-in .WLL }
-
- USES
- WinTypes, WinProcs,
- {$IFDEF VER70} Strings, {$ELSE Delphi} SysUtils, {$ENDIF}
- WdCmds, WdFid, CapiLib;
-
- {$I TEST.INC} { see TEST.INC for details ;-}
-
- (****************************************************************************
- exported procs, called by Word
- ****************************************************************************)
- FUNCTION WdAutoOpen(docID : Integer) : Integer; EXPORT;
- { called by WinWord at load time }
- CONST
- INIT_FAIL = 0;
- INIT_SUCCESS = 1;
- VAR
- i : Integer;
- BEGIN
- MessageBox(0, 'Hello World!', 'TESTWLL', MB_OK);
- Test1;
- WdAutoOpen := INIT_SUCCESS; { success }
- END;
-
-
- PROCEDURE WdAutoRemove; EXPORT;
- { called by WinWord at unload time }
- BEGIN
- MessageBox(0, 'Unloading..', 'TESTWLL', MB_OK);
- END;
-
-
- EXPORTS
- WdAutoOpen INDEX 1,
- WdAutoRemove INDEX 2;
-
- BEGIN
- END.
-
-