Turk
Er
Offline
Mesaj Sayısı: 147
|
 |
« : 03 Şubat 2008, 03:21:01 » |
|
Windows]için:
unit Unit1;
interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs,MMSystem, StdCtrls;
type TForm1 = class(TForm) Button1: TButton; Button2: TButton; Label1: TLabel; procedure Button1Click(Sender: TObject); procedure Button2Click(Sender: TObject); private { Private declarations } public { Public declarations } end;
var Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject); begin mciSendString('set cdaudio door open',nil,0,Handle); end;
procedure TForm1.Button2Click(Sender: TObject); begin mciSendString('set cdaudio door closed',nil,0,Handle); end;
end.
|