Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: Pecan on October 26, 2005, 01:45:15 am

Title: Why wont my wxBell ring??
Post by: Pecan on October 26, 2005, 01:45:15 am
Its me again ! No dont run !

The following code displays its message, but does not ring
the bell on my PC. (WinXP sp2 Dell 9300).
Using C::B RC2 with wx2.6.1
A Ctl-G to a dos box works fine. So what gives...

Code
int uPlgN2::Execute()
{
//do your magic ;)
//NotImplemented(_T("uPlgN2::Execute()"));
//return -1;
::wxBell();
wxString msg = _("Execute called from uPlgN2 bell!");
wxMessageBox(msg, _("Error"), wxICON_ERROR | wxOK);
    return 0;
}

thanks
Pecan
Title: Re: Why wont my wxBell ring??
Post by: Pecan on October 26, 2005, 03:35:41 am
Nerver Mind..... :mrgreen:

Seems there was no sound system choice in Start->Settings->"Sounds and
Audio devices".

Its was a silent silent world.

thanks
Pecan