|
ilutLoadResource is a Windows-specific function that loads a resource as the current bound image. This feature allows you to have images directly in your .exe and not worry whether a particular file is present on the user's harddrive. An alternative, more portable solution is to use ilSave with IL_CHEAD as the Type parameter.
| ILboolean ilutLoadResource( HINSTANCE hInst, ILINT ID, char * ResourceType, ILenum Type );
|
Parameters | - hInst
- The application-s HINSTANCE
- ID
- The resource identifier of the resource to be loaded
- ResourceType
- The type of user-defined resource (name used when creating)
- Type
- The type of image to be loaded. Use IL_TYPE_UNKNOWN to let OpenIL determine the type
|
Errors | - ILUT_ILLEGAL_OPERATION
- The operation attempted is not allowable in the current state. The function returns with no ill side effects.
|
See Also
|