delphi±¨¾¯ÉùÒô Beep¡¢MessageBeep ºÍ Windows.Beep
Îҵİ취£¬Ôö¼ÓÒ»¸ötimer ÉèÖüä¸ô100ms£¬Í¨¹ýtimerµÄʹÄÜ·ñ£¬¿ØÖƱ¨¾¯ÉùÒô¿ª¹Ø
procedure TForm1.Timer1Timer(Sender: TObject);
begin
Windows.Beep(1200+i_f,10+i_f);
if i_f<2000 then
begin
inc(i_f);
end
end;
===============================================
Delphi ÔÚ SysUtils µ¥Ôª¶¨Òå Beep ·½·¨, ¿ÉÒÔ·¢³öÒ»¸öÉùÒô, Ò»°ãÓÃÓÚÌáÐѺ͵÷ÊÔ.
Beep ÆäʵÊǵ÷ÓÃµÄ API º¯Êý: MessageBeep(MB_OK);
MessageBeep ÓÐÏÂÃ漸ÖÖÓ÷¨¿ÉÒÔµ÷Óü¸ÖÖ²»Í¬µÄÉùÒôÎļþ:
MessageBeep(MB_OK);
MessageBeep(MB_ICONHAND);
MessageBeep(MB_ICONQUESTION); {Õâ¸ö²»Ïì, ²»ÖªµÀΪʲô}
MessageBeep(MB_ICONEXCLAMATION);
MessageBeep(MB_ICONASTERISK);
MessageBeep($FFFFFFFF); {ͬ MessageBeep(MB_OK);}
Beep ͬʱҲÊÇÒ»¸ö API º¯Êý, Ëü¿ÉÒÔÖ¸¶¨ÉùÒôµÄ¸ß¶ÈºÍ³¤¶È; ÒòΪºÍ SysUtils.Beep ÖØÃûÁË, ËùÒÔÓ¦¸ÃÕâÑùµ÷ÓÃ:
Windows.Beep(Òô¸ß, ³¤¶È);
Æ©Èç: Windows.Beep(440, 2000); »á°ÑÒ»¸ö¹ú¼Ê±ê×¼Òô(440HZ)ÑÝ×à 2 ÃëÖÓ.
ÁíÍâµÚÒ»¸ö²ÎÊýµÄÈ¡Öµ·¶Î§ÊÇ: $25 - $7FFFF.
ÒôƵ±íÔÚhttp://www.cnblogs.com/del/archive/2008/10/22/1316380.html
ÏÂÃæµÄ³ÌÐò»áÑÝ×à<°ÂÔË»áÖ÷Ìâ¸è>µÄµÚÒ»¾ä:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
const
t = 800;
begin
Windows.Beep(330, t);
Windows.Beep(392, t);
Windows.Beep(262, t*2);
Windows.Beep(294, t);
Windows.Beep(330, t);
Windows.Beep(196, t*2);
Windows.Beep(262, t);
Windows.Beep(294, t);
Windows.Beep(330, t);
Windows.Beep(392, t);
Windows.Beep(294, t*4);
end;
end.
var
I : Integer;
begin
for I := 0 to 1000 do
&nbs
Ïà¹ØÎĵµ£º
DelphiÖÐDLL³õʼ»¯ºÍÍ˳ö´¦Àí
choysan
2010-01-08 8:56:43
<1>ÀûÓÃUnitµÄInitalizationÓëFinalizationÕâÁ½¸öС½Ú
¡¡¡¡¿ÉÒÔÔÚUnitµÄÕâÁ½¸öС½ÚÖа²ÅÅUnitµÄ½øÈëºÍÍ˳ö£¬µ«ÊÇ
ProgramÓëLibrary²¢Ã»ÓÐÕâÁ½¸ö²¿·Ö£¬ËùÒÔÖ»ÄÜдÔÚUnitÖС£
<2>ÀûÓÃExitProc±äÁ¿
¡¡¡¡ÔÚLibraryµÄbegin..end.ÖмäÊÇ¿ÉÒÔд´úÂëµÄ£ ......
Ŀ¼
===============================================================================
¡Ñ RTTI ¼ò½é
¡Ñ Àà(class) ºÍ VMT µÄ¹Øϵ
¡Ñ Àà(class)¡¢ÀàµÄÀà(class of class)¡¢Àà±äÁ¿(class variable) µÄ¹Øϵ
¡Ñ TObject.ClassType ºÍ TObject.ClassInfo
¡Ñ is ºÍ as ÔËËã·ûµÄÔÀí
¡Ñ TTypeInfo – RTTI ÐÅÏ¢µÄ½ ......
procedure TForm2.Panel1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
Screen.Cursor := -2;
end;
const
crDefault = TCursor(0);
crNone = TCursor(-1);
crArrow = TCursor(-2);
&n ......
MSHTMLÊÇ΢Èí¹«Ë¾µÄÒ»¸öCOM×é¼þ£¬¸Ã×é¼þ·â×°ÁËHTMLÓïÑÔÖеÄËùÓÐÔªËؼ°ÆäÊôÐÔ£¬Í¨¹ýÆäÌṩµÄ±ê×¼½Ó¿Ú£¬¿ÉÒÔ·ÃÎÊÖ¸¶¨ÍøÒ³µÄËùÓÐÔªËØ£®
¡¡¡¡MSHTML¶ÔÏóÄ£ÐÍÊÇÓÉһЩ¶ÔÏóºÍ¼¯ºÏ×é³ÉµÄ£®´¦ÓÚ¸ù²¿µÄÊÇHTML£¬ÃèÊöÁË´ò¿ªÒ³ÃæµÄ1¸ö´°¿Ú£¬°üÀ¨Ò»ÏµÁм¯ºÏºÍ¶ÔÏó¡£ÈçFrames¼¯ºÏ£¬History£¬Location£¬Navigator£¬Document£¬Vi—sum ......