VB School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

System Get System Beep Sound Rate Topic: -----

#1 nealgabriel45  Icon User is offline

  • New D.I.C Head
  • Icon

Reputation: 4
  • View blog
  • Posts: 46
  • Joined: 22-October 07


Dream Kudos: 50

Share |

System

Post icon  Posted 01 February 2008 - 09:37 AM

Hi Everyone,
I need to know whether it is possible to get the system beep sound using any API or any kinda code using VB. A beep sound can be due to some error in system or application running in the system. Beep is a function which is used to make beep sound in the system. But i need something like getBeep or Beep -> GetSystemSound(). I am serchin for it. But not able to succeed. I someone know wnything abt this, Please lemme know.
Was This Post Helpful? 0
  • +
  • -


#2 Martyr2  Icon User is offline

  • Programming Theoretician
  • Icon

Reputation: 1336
  • View blog
  • Posts: 8,175
  • Joined: 18-April 07


Dream Kudos: 0

Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

Re: System

Posted 01 February 2008 - 10:38 AM

You can get access to the Windows API internal beep through kernel32.dll and using a windows API call. The following document shows you how to do this (it is PDF). Once you have defined the API call in VB6 you can then call it as any other function (passing it the frequency and the duration).

Calling the Windows API beep using VB6

Enjoy!

"At DIC we be beeping mofo code ninjas!" :snap:
Was This Post Helpful? 0
  • +
  • -

#3 nealgabriel45  Icon User is offline

  • New D.I.C Head
  • Icon

Reputation: 4
  • View blog
  • Posts: 46
  • Joined: 22-October 07


Dream Kudos: 50

Re: System

Posted 01 February 2008 - 11:37 AM

View PostMartyr2, on 1 Feb, 2008 - 11:38 AM, said:

You can get access to the Windows API internal beep through kernel32.dll and using a windows API call. The following document shows you how to do this (it is PDF). Once you have defined the API call in VB6 you can then call it as any other function (passing it the frequency and the duration).

Calling the Windows API beep using VB6

Enjoy!

"At DIC we be beeping mofo code ninjas!" :snap:


Hi Martin,
Thank You Very much for the reply. But I need the Correct Windows API [Whatever the DLL Used], to get the Internal Beep. Please tell me about the function InternalBeep.
Was This Post Helpful? 0
  • +
  • -

#4 Jayman  Icon User is offline

  • Student of Life
  • Icon

Reputation: 345
  • View blog
  • Posts: 9,235
  • Joined: 26-December 05


Dream Kudos: 500

Expert In: Everything

Re: System

Posted 01 February 2008 - 11:40 AM

There is also a snippet that I submitted, it is under VB.NET but it should work for VB6, as well. It used the WIN API.

http://www.dreaminco.../snippet517.htm
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users