S
suny212
Unregistered / Unconfirmed
GUEST, unregistred user!
我在资源文件中有t1.jpg
$R *.dfm}
{$R 1.res}
procedure TForm1.FormCreate(Sender: TObject);
var
Fjpg:TJpegImage;
FStream:TResourceStream;
begin
Fjpg :=TJpegImage.Create ;
FStream := TResourceStream.Create (Hinstance,t1,jpeg);
FJpg.LoadFromStream (FStream) ;
Image1.Picture.Bitmap.Assign (FJpg);
end;
运行时总提示var下第一行出错。不明白,请高手指点!!!!!!!!!!
$R *.dfm}
{$R 1.res}
procedure TForm1.FormCreate(Sender: TObject);
var
Fjpg:TJpegImage;
FStream:TResourceStream;
begin
Fjpg :=TJpegImage.Create ;
FStream := TResourceStream.Create (Hinstance,t1,jpeg);
FJpg.LoadFromStream (FStream) ;
Image1.Picture.Bitmap.Assign (FJpg);
end;
运行时总提示var下第一行出错。不明白,请高手指点!!!!!!!!!!