how to change a Image's picture in a Dll??
From: ari (aiirii_at_163.net)
Date: 12/29/03
- Next message: Erik Springelkamp: "Re: Print Tiff or jpeg"
- Previous message: ilanov Amforkiv: "List of some problem with objectpascal"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Dec 2003 20:02:10 +0800
hi all,
I got some troubles when I use such codes below in a Dll file,
procedure LoadIma(image1: Pimage; strFileName: string); stdcall;
begin
try
if FileExists(strFileName) then
begin
Image1.Picture.LoadFromFile(strFileName);
end
else
Showmessage('FileNotExists');
except
on E: Exception do ShowMessage(E.Message);
end;
end;
When I use this procedure, i got a Warn Message: Address violation at ...
How can I solve it?
regards,
Ari
- Next message: Erik Springelkamp: "Re: Print Tiff or jpeg"
- Previous message: ilanov Amforkiv: "List of some problem with objectpascal"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|