Check the order of the units. Windows also declares TBitmap as a
record type. (Or you might be using D1, which does not have the
LoadResourceFromName method.)
--
Ray Lischner, Tempest Software, Inc., Corvallis, Oregon, USA
Author of Secrets of Delphi 2 (http://www.tempest-sw.com/secrets/)
>The docs say simply to include Graphics. But when I try to compile it
>stops on an error with the LoadResourceFromName method. I copied a
>bunch of Units from a form I know worked, but I haven't had the time
>to figure out which units it actually needs. Anyone figure this out?
Yuo probable need SysUtils, Classes and Windows.