|
FindResourceIndex | |
Size = FindResourceIndex(Index) | |
Parameters: Index = The Index of the resource in the internal resource buffer |
|
Returns: Size = The Size (in bytes) of the resource |
|
The FindResourceIndex function searches the internal resource buffer for a file that's been previously bound to the program executable at compile time using the #AddResource directive. If successful, the FindResourceIndex function returns the index of the resource buffer (ranging from 0 to GetResourceQuantity). You can then find the pointer and size of the buffer using functions GetResourcePtr,GetResourceSize. If the file isn't in the resource buffer, the function will return -1. FACTS: * FindResourceIndex will return -1 if the resource doesn't exist. * Resources can be an alternative to using DATA statements. * For more information about resource binding see the #AddResource directive. |
|
Example Source: Download This Example
|
Related Info: | #AddResource | Data | GetResourcePtr | GetResourceSize | PeekByte | PeekInt : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |