Name
FindResourceHInstance Function
Syntax
function FindResourceHInstance(Instance: LongWord): LongInt;
Description
If you have resources that need
translation, especially string resources, you can use Delphi’s
localization tools to build language-specific resource DLLs. Call
FindResourceHInstance to obtain the instance
handle of the resource DLL. Pass the instance handle of the module
that contains the unit (usually HInstance). If the
module has no resource module,
FindResourceHInstance returns the module’s
instance handle. In either case, use the instance handle that
FindResourceHInstance returns to load
language-specific resources.
Delphi automatically loads localized resources from the language DLL,
so you do not usually need to call
FindResourceHInstance. If you have customized the
language DLL and added other resources, you can call this function to
load your extra resources.
FindResourceHInstance is a real function.
See Also
| FindClassHInstance Function, FindHInstance Function, HInstance Variable, LoadResourceModule Function |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access