//Bagian Executed DLL
// By : Zephio
// Untuk Membuat DLL, Klik Main Menu : File -> New -> Other...-> DLL Wizard.
library ZS;
uses
SysUtils,
Windows,
ShellApi;
{$R *.res}
procedure EA;
var
MsgText, MsgCaption : String;
MsgType, UserResp : integer;
begin
MsgCaption := '.About :.';
MsgText := MsgText + 'Created By : Zephio' +#13#10;
MsgText := MsgText + 'URL :http://amateur-guide.blogspot.com';
MsgType := MB_OK + MB_ICONINFORMATION + MB_DEFBUTTON1 + MB_APPLMODAL;
UserResp := MessageBox( 0, PChar(MsgText), PChar(MsgCaption), MsgType);
end;
procedure EE;
begin
ShellExecute(0,'open','mailto:zephio@myspace.com?subject=Hi, Zephio...','','',SW_SHOW);
end;
procedure EF;
begin
ShellExecute(0,'open','C:\WINDOWS\system32\cmd.exe',nil,nil,SW_SHOW);
end;
procedure EU;
begin
ShellExecute(0,'open','http://amateur-guide.blogspot.com',nil,nil,SW_SHOW);
end;
exports EF, EE, EU, EA;
begin
end.
//Bagian Form
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
procedure FormCreate(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
procedure Button5Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
procedure EF; external 'ZS.dll';
procedure EA; external 'ZS.dll';
procedure EE; external 'ZS.dll';
procedure EU; external 'ZS.dll';
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
Button1.Caption := 'Contact';
Button2.Caption := 'URL';
Button3.Caption := 'Open CMD';
Button4.Caption := 'About';
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
EE;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
EU;
end;
procedure TForm1.Button3Click(Sender: TObject);
begin
EF;
end;
procedure TForm1.Button5Click(Sender: TObject);
begin
EA;
end;
end.
// By : Zephio
// Untuk Membuat DLL, Klik Main Menu : File -> New -> Other...-> DLL Wizard.
library ZS;
uses
SysUtils,
Windows,
ShellApi;
{$R *.res}
procedure EA;
var
MsgText, MsgCaption : String;
MsgType, UserResp : integer;
begin
MsgCaption := '.About :.';
MsgText := MsgText + 'Created By : Zephio' +#13#10;
MsgText := MsgText + 'URL :http://amateur-guide.blogspot.com';
MsgType := MB_OK + MB_ICONINFORMATION + MB_DEFBUTTON1 + MB_APPLMODAL;
UserResp := MessageBox( 0, PChar(MsgText), PChar(MsgCaption), MsgType);
end;
procedure EE;
begin
ShellExecute(0,'open','mailto:zephio@myspace.com?subject=Hi, Zephio...','','',SW_SHOW);
end;
procedure EF;
begin
ShellExecute(0,'open','C:\WINDOWS\system32\cmd.exe',nil,nil,SW_SHOW);
end;
procedure EU;
begin
ShellExecute(0,'open','http://amateur-guide.blogspot.com',nil,nil,SW_SHOW);
end;
exports EF, EE, EU, EA;
begin
end.
//Bagian Form
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
procedure FormCreate(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
procedure Button5Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
procedure EF; external 'ZS.dll';
procedure EA; external 'ZS.dll';
procedure EE; external 'ZS.dll';
procedure EU; external 'ZS.dll';
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
Button1.Caption := 'Contact';
Button2.Caption := 'URL';
Button3.Caption := 'Open CMD';
Button4.Caption := 'About';
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
EE;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
EU;
end;
procedure TForm1.Button3Click(Sender: TObject);
begin
EF;
end;
procedure TForm1.Button5Click(Sender: TObject);
begin
EA;
end;
end.
No comments:
Post a Comment