The following shows the REXX command file for registering the Hello class:
/* */
call RxFuncAdd "SysLoadFuncs", "RexxUtil", "SysLoadFuncs"
call SysLoadFuncs
say SysRegisterObjectClass("Hello", "C:\OS2\DLL\HELLO.DLL")
The following shows the REXX command file for creating an instance of the Hello class:
/* */
call RxFuncAdd "SysLoadFuncs", "RexxUtil", "SysLoadFuncs"
call SysLoadFuncs
say SysCreateObject("Hello",,
"My Hello",,
"<WP_DESKTOP>",,
"OBJECTID=<MY_HELLO>")
The following shows the REXX command file for deregistering the Hello class:
/* */
call RxFuncAdd "SysLoadFuncs", "RexxUtil", "SysLoadFuncs"
call SysLoadFuncs
say SysDeregisterObjectClass("Hello")