VoyForums

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 123456[7]8910 ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 20:58:00 12/16/01 Sun
Author: Kai
Subject: LoadFromResourceName



I am trying to simulate LoadFromResourceName like
below. This does give me an 'Bitmap is invalid'...

What am I doing wrong?

Thanks,
Kai



try
stream := TResourceStream.Create( hInstance, 'IMG_MISSING', RT_BITMAP );
imagescrollbox.LoadFromStream( stream, 'BMP', 1 );
imagescrollbox.Hint := 'Picture file is invalid or unsupported.';
finally
stream.Free;
end;

[ Next Thread | Previous Thread | Next Message | Previous Message ]


Replies:


[ Contact Forum Admin ]


Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.