大家看看有什么 问题?
unit Unit1;interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls,shellapi;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
b: Boolean;
begin
b := AnsiResemblesText('abc','apc');
ShowMessage(BoolToStr(b)); {True}
b := AnsiResemblesText('abc','agc');
ShowMessage(BoolToStr(b)); {False}
b := AnsiResemblesText('abc','aac');
ShowMessage(BoolToStr(b)); {False}
end;
end.
这段代码一直不成功!什么原因啊