System.Classes.ReadComponentResEx

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ReadComponentResEx(HInstance: THandle; const ResName: string): TComponent;

C++

extern DELPHI_PACKAGE TComponent* __fastcall ReadComponentResEx(NativeUInt HInstance, const System::UnicodeString ResName);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

Reads a component from a resource.

Use ReadComponentResEx to load a component from a resource stored in a particular module (as opposed to ReadComponentRes, which assumes the current module).

The HInstance parameter is the instance handle for the module that stores the component as a resource. The ResName parameter is the name assigned to the resource for the component.

ReadComponentResEx returns an instance of the component that was read from the resource.

See Also