home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
odtlktv4.zip
/
ODTLKT
/
TOOLKIT
/
SAMPLES
/
OPENDOC
/
PARTS
/
TTAPE1
/
TAPEINST.CMD
next >
Wrap
OS/2 REXX Batch file
|
1995-12-15
|
2KB
|
68 lines
/*****************************************************************/
/* */
/* FileName: TapeInst.CMD */
/* */
/* Purpose: Installation command file for the TTAPE1 part. */
/* Calls the Opendoc Rexx API to register the part. */
/* */
/* Change History: */
/* */
/*****************************************************************/
/* add the registration function ( and utilities )*/
SAY " Adding functions ";
call RXFUNCADD 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
call SysCls
SAY
SAY "**************************************"
SAY "* *"
SAY "* Registering the TickerTape1 Part *"
SAY "* *"
SAY "**************************************"
/* Load the REXX functions */
rc = RXFUNCQUERY('ODLoadOpenDocFuncs');
SAY " rc = " rc;
IF rc \= 0 then DO
SAY " Adding ODLoadOpenDocFuncs"
rc = RXFUNCADD('ODLoadOpenDocFuncs', 'OPENDOC', 'ODLoadOpenDocFuncs');
SAY " RXFUNCADD rc for ODLoadOpendocFuncs = " rc
IF rc < 0 THEN DO
SAY " Unable to add Opendoc functions, EXITING";
RETURN;
END
END
call ODLoadOpenDocFuncs;
className = "TickerTape1Part"
dllName = "ttape1"
cTemplate = "TRUE"
somIRName = ""
SAY "Registering TickerTape1 part"
rc = ODRegisterPartHandlerClass( className, dllName, cTemplate, somIRName);
/* rc of 0 = successfully added, 4 = successfully replaced */
IF rc \= 0 & rc \= 4 then do
call ODUnLoadOpenDocFuncs
call RxFuncDrop 'ODLoadOpenDocFuncs'
SAY " Registration failed, rc = " rc;
return;
end
call ODUnLoadOpenDocFuncs
call RxFuncDrop 'ODLoadOpenDocFuncs'
SAY "TickerTape1 part successfully registered";
RETURN