if FileExt='.JPG' then
begin
try
ImgShow.Picture.LoadFromFile(ShellListView1.selectedfolder.PathName);
except
on ElnvalidGraphic do
ImgShow.Picture.Graphic:=nil;
end;
SetJPEGOptions(self);
end;
这是一段显示JPG图片的程序但出错(这程序的一部分,其他部分都通过了):
[Error] Unit1.pas(48): Undeclared identifier: 'ElnvalidGraphic'
[Error] Unit1.pas(51): Undeclared identifier: 'SetJPEGOptions'
我是照书上写的,请各位大虾帮看一下……
谢谢了……
begin
try
ImgShow.Picture.LoadFromFile(ShellListView1.selectedfolder.PathName);
except
on ElnvalidGraphic do
ImgShow.Picture.Graphic:=nil;
end;
SetJPEGOptions(self);
end;
这是一段显示JPG图片的程序但出错(这程序的一部分,其他部分都通过了):
[Error] Unit1.pas(48): Undeclared identifier: 'ElnvalidGraphic'
[Error] Unit1.pas(51): Undeclared identifier: 'SetJPEGOptions'
我是照书上写的,请各位大虾帮看一下……
谢谢了……
应该是:
EInvalidGraphic
(被你打成l了)
EInvalidGraphic可能就是二楼说的问题。