home *** CD-ROM | disk | FTP | other *** search
- /**********************************************************/
- /* */
- /* WatchCat 2.1 - Register and create WatchCat WPS object */
- /* */
- /* It is recommended to use INSTALL.EXE. */
- /* */
- /**********************************************************/
-
- call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs';
- call SysLoadFuncs;
-
- /* register WatchCat class WPCat */
-
- result = SysRegisterObjectClass("WPCat", "WPCAT");
-
- if result then
- do
- say "WPCat has been registered successfully";
-
- /* create WatchCat WPS object on desktop */
-
- if SysCreateObject("WPCat", "WatchCat", "<WP_DESKTOP>", "OBJECTID=<WP_CAT>")
- then say "WatchCat WPS object has been created successfully.";
- else say "WatchCat WPS object could not be created on desktop!";
- end
- else say "WatchCat class is not registered!";
-