a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 resource.library
  --background--
  RL_CloseResource
  RL_DisposeGroup
  RL_DisposeObject
  RL_GetObjectArray
  RL_NewGroupA
  RL_NewObjectA
  RL_OpenResource
  RL_SetResourceScreen
Include
GuruMeditation
Docs » Autodocs » resource.library » RL_OpenResource

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

RESULT

	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()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Razor 1911

RZR
CSL
TSL
AFL

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se