第一个解决问题的得到全部的50分谢谢
再线等待
再线等待
解决方案 »
- delphi7 显示gif动画问题!---在线等
- 一个字符串的问题!!!!!
- 超菜鸟的问题:如何设置一副图片为窗体的背景?
- delphi 出了问题,希望大家帮帮忙啊,100分亟待
- (sender as Tscrollbox)啥子意思
- 我从前学VB ,现在有兴趣学DELPHI ,想交朋友,留下QQ myqq 82964787,谢谢
- 请问用FastReport怎么控制POS机的打印,详细内容请进
- delphi+directx的PrimarySurface问题
- PageControl这个控件怎么使用,我要做出2个Page,怎么设置,谢谢!
- 简单问题送100分
- 关于BDE与dbExpress的问题!
- 为什么在TTreeview中我选中的Node的图标会变回imagelist中的第一个,不选又变回原来的图标了。
怎么实现,给断代码吧
比如:
当你点按钮时就可以执行下面代码:
if MessageDlg('quit?',mtConfirmation,[mbYes,mbNo],0)=mrNo then
MessageBeep(MB_OK)
else
begin
MessageBeep(MB_ICONQUESTION);
close;
end
end;
括号内的既为系统默认的几种声音! 其值可为以下几个
1 MB_ICONEXECLAMATION
2 MB_ICONHAND
3 MB_ICONQUESTION
4 MB_ICONASTERISK
5 MB_OK
格式如下:
playsound('声音文件路径',0,snd_sync)
呵呵。简单吧。
问什么有错误?
错误信息是
[Error] Unit1.pas(184): Undeclared identifier: 'PlaySound'
而且我已经引用了shellapi单元了
windows.beep(587,500); //2
windows.beep(659,500); //3
windows.beep(698,500); // 4
windows.beep(784,500); // 5
windows.beep(880,500); // 6
windows.beep(998,500); // 7
windows.beep(1047,500); //i
问什么有错误?
错误信息是
[Error] Unit1.pas(184): Undeclared identifier: 'PlaySound'
而且我已经引用了shellapi单元了
---------------------------------------------------------------------------------呵呵。对的要引用这个函数,可它不能引用为API函数,要在uses内加上 mmsystem。
begin
asm
in al,$61;
and al ,$fc;
out $61, al;
end;
end;
const
scale=1193180;
var
temp:word;
begin
temp:=scale div feq;
asm
in al, 61h;
or al, 3;
out 61h, al;
mov al, $b6;
out 43h, al;
mov ax, temp;
out 42h, al;
mov al ,ah;
out 42h ,al;
end;
sleep(delay);
beepoff;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
BeepEx(100,20);
BeepEx(1000,200);
BeepEx(10,100);
end;