There is a package of components *.bpk . *.bpk . In it, I implement my custom components. In one of them I need to use the *.png image from the rc file. Here are its contents:
INFO RCDATA info.png DELETE RCDATA delete.png I compile in ChartIcon.res and try to connect it to the package project. The resource locker shows that resources are present:
package SpComponents; {$R ChartIcon.res}` ... ... .. In the module where the component is defined, I try to load the resource:
FInfoButton.Glyph.LoadFromResourceName(HInstance, 'INFO'); But it gives an error that the resource is not found. How to load the resource in the package?