This class method sets the current error code within a class object.

#define INCL_WINWORKPLACE
#include <os2.h>

M_WPObject     *somSelf;    /*  Pointer to the WPObject class object. */
ULONG           ulErrorId;  /*  Error code. */
BOOL            rc;         /*  Success indicator. */

rc = _wpclsSetError(somSelf, ulErrorId);


[Back] [Next]