AnsweredAssumed Answered

vrf Beeping VEE with .net

Question asked by VRFuser on Jun 23, 2004
Hi Detlef and the vrf,

This one works on my Win2K machine, whereas VEE's own Beep object doesn't!

Detlef and .NET to the rescue!

:-)

Best Regards,


Scott Bayes
Software Technical Support

Agilent Technologies, Inc.
815 14th Street S.W.
Loveland, CO, U.S.A. 80537

970 679 3799 Tel
970 635 6867 Fax

> -----Original Message-----
> From: Baranski, Detlef [mailto:Detlef.Baranski@PILKINGTON.de]
> Sent: Wednesday, June 23, 2004 8:58 AM
> To: PDL-LISTS,VRF (A-Lists,unix1)
> Subject: [vrf] Beeping VEE with .net
>
>
> Here is an example in Vee7 with .net,
> i did find it under microsoft.visualbasic.interaction.beep()....
> as described below...
>

>
> -----Ursprngliche Nachricht-----
> Von: Baranski, Detlef
> Gesendet: 23 June 2004 16:31
> An: 'STREET,ANDY (A-England,ex2)'; VRF
> Betreff: [vrf] Beeping VEE
>
>
> Sound and .net   --- was very interesting to search for
>
> Here is  some information:
>
> ???.NET framework1.0/1.1???Beep()???????????????????:
> (a) ??Win32 API:
>     [DllImport("kernal32.dll")]
>     public static extern bool Beep(int freq, int duration);
>
> (b) MessageBeepType
>     public enum MessageBeepType
>     {
>         Default = -1,
>         Ok = 0x00000000,
>         Error = 0x00000010,
>         Question = 0x00000020,
>         Warning = 0x00000030,
>         Information = 0x00000040,
>     }
>     [DllImport("user32.dll", SetLastError=true)]
>     public static extern bool MessageBeep(MessageBeepType type);
>
>
> (c)     ??VB assembly??Beep()
> ?????Microsoft.VisualBasic.dll????????:
>     Microsoft.VisualBasic.Interaction.Beep()
>
>
> and the future brings:
>
> ?Whidbey (.NET Framework V2.0)??Framework?????Beep():
>         Console.Beep();
>         Console.Beep(int frequency, in duration);
>
>
> ------
>
>
> If you want some other possibilities- have a look under the
> activeX-Controls
> of playing sounds in the V7/examples/games folder, which
> shows how to play
> wave-files.
>
> But it is not just one line , sorry.
>
> or execute just a soundfile with integrated player .
>
> best regards,
> detlef
>
>
>
>
>
> -----Ursprngliche Nachricht-----
> Von: STREET,ANDY (A-England,ex2) [mailto:andy_street@agilent.com]
> Gesendet: 22 June 2004 19:56
> An: VRF
> Betreff: [vrf] Beeping VEE
>
>
> Hi VRF,
>
> A simple question, maybe...  Does anyone know how to get VEE
> to make the PC
> beep? 
>
> 1) The native VEE beep function is too lame on modern PCs
>
> 2) Could get Matlab to issue a beep for me, but a little clunky
>
> 3) Could make a call to the Windows API (but this gets messy in my
> application as I need beeps in a bunch of different UF
> libraries and do not
> want to have every library calling the dll) - and I do not
> want to rely on
> the calling environment having imported the Win API dll
>
> 4) So... VEE 7-0 and .net - can I do anything in .net that
> will make this oh
> so clever machine emit a simple beep. 
>
> What I really want is a simple beep that I can issue with 1-2
> lines of code,
> without having to pull in a Windows API...
>
> Will the might of .net help?
>
> Thanks
>
> Andy
>
> ---
> You are currently subscribed to vrf as: Detlef.Baranski@PILKINGTON.de
> To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
> To unsubscribe send a blank email to
> "leave-vrf@it.lists.it.agilent.com".
> To send messages to this mailing list,  email "vrf@agilent.com". 
> If you need help with the mailing list send a message to
> "owner-vrf@it.lists.it.agilent.com".
>
>

---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes