Alaska Software Inc. - API MessageBeep
Username: Password:
AuthorTopic: API MessageBeep
Carlos A Beling API MessageBeep
on Tue, 12 May 2020 15:25:16 -0300
Good afternoon.
Please why the beeps MB_ICONERROR and MB_ICONQUESTION does not play in 
the attached program?

Fraternally
Beling


Project.xpj
Test.prg
Jonathan LeemingRe: API MessageBeep
on Tue, 12 May 2020 17:05:00 -0600
On 5/12/2020 12:25 PM, Carlos A Beling wrote:
> Good afternoon.
> Please why the beeps MB_ICONERROR and MB_ICONQUESTION does not play in 
> the attached program?
> 
> Fraternally
> Beling

Hi,

I downloaded and tried your test.prg.  At first I could not get it to 
compile as I did not have the APIGDI.ch file.  Not sure what it 
contained so commented it out to see if I got a compiler error.  No 
Error so ran it and got sounds for all except MB_ICONQUESTION. 
Wondering why I got MB_ICONERROR when you didn't I went into Control 
Panel->Sounds and on the sounds tab looked at the list of defined 
sounds.  The "Question" entry did not have a defined sound so I picked 
one at random from the sounds dropdown, hit the test button and then apply.

Reran your test and MB_ICONQUESTION now has a sound.  However I went 
through all the event options for sound and could not find one that is 
set to play the same sound as the MB_ICONERROR sound I get with your 
test.prg.

Regards... Jonathan

jonathan.leeming@familycentre.org
Edmonton, Alberta, Canada
Carlos A Beling Re: API MessageBeep
on Wed, 13 May 2020 10:16:23 -0300
Hello Jonathan.
Good day.
Many thanks.
Excuse the absence of the ApiGdi.ch: it is not relevant for this test.
I was doing to use the MessageBeep() API for alerts to the operator with 
the windows' sounds.
Now it seems to me that it is not a good idea because it needs 
configuration of the Windows and the user may not did or do not know how 
to do it.

Fraternally
Beling


On 12/05/2020 20:05, Jonathan Leeming wrote:
> On 5/12/2020 12:25 PM, Carlos A Beling wrote:
>> Good afternoon.
>> Please why the beeps MB_ICONERROR and MB_ICONQUESTION does not play in 
>> the attached program?
>>
>> Fraternally
>> Beling
> 
> Hi,
> 
> I downloaded and tried your test.prg.  At first I could not get it to 
> compile as I did not have the APIGDI.ch file.  Not sure what it 
> contained so commented it out to see if I got a compiler error.  No 
> Error so ran it and got sounds for all except MB_ICONQUESTION. Wondering 
> why I got MB_ICONERROR when you didn't I went into Control Panel->Sounds 
> and on the sounds tab looked at the list of defined sounds.  The 
> "Question" entry did not have a defined sound so I picked one at random 
> from the sounds dropdown, hit the test button and then apply.
> 
> Reran your test and MB_ICONQUESTION now has a sound.  However I went 
> through all the event options for sound and could not find one that is 
> set to play the same sound as the MB_ICONERROR sound I get with your 
> test.prg.
> 
> Regards... Jonathan
>