NAME
RL_OpenResource - open a resource (V44)
SYNOPSIS
resource = RL_OpenResource(resobject, screen, catalog)
D0 A0 A1 A2
resourcefile rl_openresource(aptr, struct screen *, struct catalog *);
FUNCTION
This routine opens a resource object.
If you give a NULL for the parameter screen do not call rl_newobjecta
or rl_newgroupa. you must first set a screen with
rl_setresourcescreen.
INPUTS
resobject -- a pointer to a resource object
screen -- a pointer to a screen. this may be null
catalog -- a pointer to a catalog. this may be null
RESULTS
resource -- a pointer to a resource or NULL
EXAMPLE
extern char RCTResource[];
struct screen *screen;
screen = LockPubScreen(NULL);
resourcefile resource = rl_openresource(rctresource, screen, null);
if (resource)
{
/* create your objects here */
}
RL_CloseResource(resource);
UnlockPubScreen(NULL,screen);
SEE ALSO
intuition.library/lockpubscreen
intuition.library/openscreentaglist
locale.library/OpenCatalogA
resource.library/rl_closeresource
resource.library/rl_setresourcescreen