In Delphi 5 the following code in the create constructor for one of my
components would load a bitmap onto a button.
constructor TSTEmailEdit.Create(AOwner: TComponent);
begin
inherited
Create(AOwner);
if (csDesigning in ComponentState) then
ButtonGlyph.LoadFromResourceName(HInstance,'EMAIL');
end;
I made sure that the TSTEmailEdit.dcr file is in the same directory as my
TSTEmailEdit.pas file and that it does contain a bitmap name 'EMAIL'.
In Delphi 2010 I can compile my package that contains this component, but
when I go to drop it on a VCL form I get an error message "Resource EMAIL
not found" and it does exist in the dcr file.
Any ideas?
Thanks,
Mike
__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi-talk