当前位置:主页>仓库管理软件> 列表

如何得到系统的报警声音 找进销存系统详细设计

记账软件版1楼: 各位富翁:我想得到一个API函数当计算机没有音箱的时候得到系统的报警声音!

2楼: beep 如库房管理软件

3楼: beep可以的

4楼: The MessageBeep function plays a waveform sound. The waveform sound for each sound type is identified by an entry in the [sounds] section of the registry.

BOOL MessageBeep(

UINT uType // sound type
);


Parameters

uType

Specifies the sound type, as identified by an entry in the [sounds] section of the registry. This parameter can be one of the following values:

Value Sound
0xFFFFFFFF Standard beep using the computer speaker
MB_ICONASTERISK SystemAsterisk
MB_ICONEXCLAMATION SystemExclamation
MB_ICONHAND SystemHand
MB_ICONQUESTION SystemQuestion
MB_OK SystemDefault

5楼: beep(200,2000)
前一参数是频率,后一个是时长!

6楼: BEEP具体怎么用呢。能举个例子吗?

记账软件版7楼: Beep
The Beep function generates simple tones on the speaker. The function is synchronous; it does not return control to its caller until the sound finishes.
BOOL Beep(
DWORD dwFreq, // sound frequency
DWORD dwDuration // sound duration
);
Parameters
dwFreq
Windows NT/ 2000: [in] Specifies the frequency, in hertz, of the sound. This parameter must be in the range 37 through 32,767 (0x25 through 0x7FFF).
dwDuration
Windows NT/ 2000: [in] Specifies the duration, in milliseconds, of the sound.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
Windows 95: The Beep function ignores the dwFreq and dwDuration parameters. On computers with a sound card, the function plays the default sound event. On computers

8楼: BEEP()函数是音箱发音,而非喇叭发音

9楼: 喇叭发音用Windows的beep:
Windows.Beep(200,200); dwfreq声音频率hz,dwDuration声音长度ms
~~~~~~~~
在dos下喇叭发音:
Microsoft Windows 2000 [Version 5.00.2195]
(C) 版权所有 1985-2000 Microsoft Corp.

C:\Documents and Settings\Administrator>cd\



C:\>copy con a.bat
^G^G
^Z
已复制 1 个文件。

C:\>a.bat

10楼: procedure TForm1.Button1Click(Sender: TObject);
begin
windows.Beep(200,2000);
end;

11楼: 大家发的我都试验了一下。但是得到的都是。音箱的声音。不是主板的声音。各位还有什么高见吗?

12楼: 呵呵,没有音箱了,哪来的声音,短见了. 如进销存系统详细设计

13楼: 把音箱连接主机的线拔掉先,再听听从哪儿发出来的声音!
前提示声卡驱动正常:P
Windows.Beep(500,2000);

记账软件版14楼: http://www.delphibbs.com/delphibbs/dispq.asp?lid=2001437
随便搜了一个,看来只能写汇编了

15楼: ff_ff,你是真不知道还是........
windows.Beep(200,2000);
确实是主板的声音,你把音箱拔了试试