明天就要给老板了,也不知道这个错在哪了
大大们帮偶看下
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
Image1: TImage;
Timer1: TTimer;
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
AppPath:string;
g:integer;
const sCount=15;
implementation
{$R *.dfm}
{$R dc.res}
procedure TForm1.Timer1Timer(Sender: TObject);
begin
g:=1;
g:=g+1;
apppath:=extractfilepath(paramstr(0));
if g<=sCount then
Image1.Picture.Bitmap.LoadfromFile (hinstance,1);{怎么这里提示[Error] Unit1.pas(40): Incompatibletypes: 'String' and 'Cardinal'的错误呢,为什么会出现这种错误呢,怎么去改}
end;
end.