Labels are used for definied a resource name.
res=OpenResource(<id>,<label>)
Open a Resource, id can be a number or #pb_any, label identificate the resource
len=ResourceSize(<id>)
Return the size of the Resource in bytes
*mem=Resource(<id>)
Return the memory address of the resource
CloseResource(<id>)
close the resource.
Example:
Code: Select all
Resource
XML_About:
IncludeBinary "xml\about_dialog.xml"
XML_Main:
IncludeBinary "xml\main_dialog.xml"
Img_Logo:
IncludeBinary "img\Logo.png"
EndResource
res=OpenResource(#pb_any, XML_About)
xml=CatchXML(#pb_any,Resource(res),ResourceSize(res))
FreeResource(res)