
23.09.2011, 15:41
|
Прохожий
|
|
Регистрация: 22.07.2011
Сообщения: 9
Репутация: 10
|
|
Разобрался
Разобрался, вот что мозг животворящий делает)))
PHP код:
unit main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ComObj, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
FDriver:Olevariant;
function GetDriver: OleVariant;
property Driver: OleVariant read GetDriver;
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
function TForm1.GetDriver: OleVariant;
begin
if VarIsEmpty(FDriver) then
FDriver := CreateOleObject('Addin.DrvFR');
Result := FDriver;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
driver.OpenCheck;
driver.CloseCheck;
end;
end.
|