Developer

API Reference

IResFile_GetObject()

Brew Release
Brew MP 1.0.2
See Also
IResFile Interface IResFile_GetObject() ISHELL_LoadResObject()
Description
Gets a resource object with given class from the resource file. This function can be used to easily load BREW interface based objects, such as images and sounds from a resource file using the HTYPE constants defined in AEEShell.h
Parameters
  • pif
    []:
    [in] A pointer to an IResFile object.
  • resid
    []:
    [in] ID of the resource to be loaded
  • clsid
    []:
    [in] Class ID or HTYPE of the object to be loaded
  • ppif
    []:
    [out] A pointer to the destination pointer for the object

Interface
Prototype
   int IResFile_GetObject(IResFile *pif, uint32 resid, AEECLSID clsid, void **ppif)
Return
   AEE_SUCCESS: Object was loaded 
   AEE_EFAILED: Object was not found or failed to load correctly
Side Effect
None
Comment
The function accepts HTYPE and classid for the classid field.
  • Follow