Is it possible to convert this code to a VB.net Windows app? 
Author Message
 Is it possible to convert this code to a VB.net Windows app?

Can anyone tell me how to transform this code in the VB.NET version (Not as
a web page but in an VB applicaion)? I've tried several times and am not
getting anywhere.

<BODY>
<OBJECT ID="DACtl"
CLASSID="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D"
 style="height:1;width:1;top:0;left:0;"></OBJECT>
<SCRIPT>
 m = DACtl.MeterLibrary;
 snd = m.SinSynth.Rate(800); // 800khz sine wave.
 snd2=snd.RateAnim(m.Add(m.DANumber(3),m.Cos(m.localTime)));
 snd3=snd.RateAnim(m.Div(m.Sin(m.localTime),m.Cos(m.localTime)));
 DACtl.Sound = snd2;
// change snd to snd2 and snd3 for more interesting sounds.
 DACtl.image = m.solidColorImage(m.White);
 DACtl.Start();
</SCRIPT>
</Body>

Or do I have to wait for the next release of directX?

Thanks

Ed



Thu, 14 Apr 2005 23:03:57 GMT  
 Is it possible to convert this code to a VB.net Windows app?
Hi, Ed

I talked the the multimedia team tech lead and he said that this control is
3 years old and does not work in VS.Net.  No update planned.

HTH,

John Eikanger
Microsoft Visual Basic Team

This posting is provided AS IS with no warranties, and confers no rights.
(c) 2002 Microsoft Corporation.  All rights reserved.
--------------------

| Subject: Is it possible to convert this  code to a VB.net Windows app?
| Date: Sun, 27 Oct 2002 10:03:57 -0500
| Lines: 31
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

| Newsgroups: microsoft.public.vb.directx
| NNTP-Posting-Host: 12.226.60.189
| Path: cpmsftngxa09!tkmsftngxs02!tkmsftngp01!tkmsftngp09
| Xref: cpmsftngxa09 microsoft.public.vb.directx:5584
| X-Tomcat-NG: microsoft.public.vb.directx
|
| Can anyone tell me how to transform this code in the VB.NET version (Not
as
| a web page but in an VB applicaion)? I've tried several times and am not
| getting anywhere.
|
|
|
| <BODY>
| <OBJECT ID="DACtl"
| CLASSID="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D"
|  style="height:1;width:1;top:0;left:0;"></OBJECT>
| <SCRIPT>
|  m = DACtl.MeterLibrary;
|  snd = m.SinSynth.Rate(800); // 800khz sine wave.
|  snd2=snd.RateAnim(m.Add(m.DANumber(3),m.Cos(m.localTime)));
|  snd3=snd.RateAnim(m.Div(m.Sin(m.localTime),m.Cos(m.localTime)));
|  DACtl.Sound = snd2;
| // change snd to snd2 and snd3 for more interesting sounds.
|  DACtl.image = m.solidColorImage(m.White);
|  DACtl.Start();
| </SCRIPT>
| </Body>
|
|
| Or do I have to wait for the next release of directX?
|
| Thanks
|
| Ed
|
|
|
|



Sat, 16 Apr 2005 07:42:18 GMT  
 Is it possible to convert this code to a VB.net Windows app?
Ok John thanks for the reply. It's too bad though..it's exactly what I need.
Is there is
a suggested alternative? I just want to generate tones at different
frequencies but I don't want a .wav file as the source.

Ed



Quote:
> Hi, Ed

> I talked the the multimedia team tech lead and he said that this control
is
> 3 years old and does not work in VS.Net.  No update planned.

> HTH,

> John Eikanger
> Microsoft Visual Basic Team

> This posting is provided "AS IS" with no warranties, and confers no
rights.
> (c) 2002 Microsoft Corporation.  All rights reserved.
> --------------------

> | Subject: Is it possible to convert this  code to a VB.net Windows app?
> | Date: Sun, 27 Oct 2002 10:03:57 -0500
> | Lines: 31
> | X-Priority: 3
> | X-MSMail-Priority: Normal
> | X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

> | Newsgroups: microsoft.public.vb.directx
> | NNTP-Posting-Host: 12.226.60.189
> | Path: cpmsftngxa09!tkmsftngxs02!tkmsftngp01!tkmsftngp09
> | Xref: cpmsftngxa09 microsoft.public.vb.directx:5584
> | X-Tomcat-NG: microsoft.public.vb.directx
> |
> | Can anyone tell me how to transform this code in the VB.NET version (Not
> as
> | a web page but in an VB applicaion)? I've tried several times and am not
> | getting anywhere.
> |
> |
> |
> | <BODY>
> | <OBJECT ID="DACtl"
> | CLASSID="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D"
> |  style="height:1;width:1;top:0;left:0;"></OBJECT>
> | <SCRIPT>
> |  m = DACtl.MeterLibrary;
> |  snd = m.SinSynth.Rate(800); // 800khz sine wave.
> |  snd2=snd.RateAnim(m.Add(m.DANumber(3),m.Cos(m.localTime)));
> |  snd3=snd.RateAnim(m.Div(m.Sin(m.localTime),m.Cos(m.localTime)));
> |  DACtl.Sound = snd2;
> | // change snd to snd2 and snd3 for more interesting sounds.
> |  DACtl.image = m.solidColorImage(m.White);
> |  DACtl.Start();
> | </SCRIPT>
> | </Body>
> |
> |
> | Or do I have to wait for the next release of directX?
> |
> | Thanks
> |
> | Ed
> |
> |
> |
> |



Sun, 17 Apr 2005 11:59:55 GMT  
 Is it possible to convert this code to a VB.net Windows app?
Hi, Ed

The recommended way to create a custom sound is to build a WAV file in
memory and play it from there.  I was pointed to Chapter 22 of Programming
Windows 5th Edition by Charles Petzold, specifically the sinewave.c sample.
The material is copyrighted so I can't post it and  I was not able to
locate a VB sample.

HTH,

John Eikanger
Microsoft Visual Basic Team

This posting is provided AS IS with no warranties, and confers no rights.
(c) 2002 Microsoft Corporation.  All rights reserved.
--------------------

| References:
| Subject: Re: Is it possible to convert this  code to a VB.net Windows app?
| Date: Tue, 29 Oct 2002 22:59:55 -0500
| Lines: 78
| X-Tomcat-NG: microsoft.public.vb.directx
|
| Ok John thanks for the reply. It's too bad though..it's exactly what I
need.
| Is there is
| a suggested alternative? I just want to generate tones at different
| frequencies but I don't want a .wav file as the source.
|
|
| Ed
|
|
|


| > Hi, Ed
| >
| > I talked the the multimedia team tech lead and he said that this control
| is
| > 3 years old and does not work in VS.Net.  No update planned.
| >
| > HTH,
| >
| > John Eikanger
| > Microsoft Visual Basic Team
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| > (c) 2002 Microsoft Corporation.  All rights reserved.
| > --------------------

| > | Subject: Is it possible to convert this  code to a VB.net Windows app?
| > | Date: Sun, 27 Oct 2002 10:03:57 -0500
| > | Lines: 31
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

| > | Newsgroups: microsoft.public.vb.directx
| > | NNTP-Posting-Host: 12.226.60.189
| > | Path: cpmsftngxa09!tkmsftngxs02!tkmsftngp01!tkmsftngp09
| > | Xref: cpmsftngxa09 microsoft.public.vb.directx:5584
| > | X-Tomcat-NG: microsoft.public.vb.directx
| > |
| > | Can anyone tell me how to transform this code in the VB.NET version
(Not
| > as
| > | a web page but in an VB applicaion)? I've tried several times and am
not
| > | getting anywhere.
| > |
| > |
| > |
| > | <BODY>
| > | <OBJECT ID="DACtl"
| > | CLASSID="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D"
| > |  style="height:1;width:1;top:0;left:0;"></OBJECT>
| > | <SCRIPT>
| > |  m = DACtl.MeterLibrary;
| > |  snd = m.SinSynth.Rate(800); // 800khz sine wave.
| > |  snd2=snd.RateAnim(m.Add(m.DANumber(3),m.Cos(m.localTime)));
| > |  snd3=snd.RateAnim(m.Div(m.Sin(m.localTime),m.Cos(m.localTime)));
| > |  DACtl.Sound = snd2;
| > | // change snd to snd2 and snd3 for more interesting sounds.
| > |  DACtl.image = m.solidColorImage(m.White);
| > |  DACtl.Start();
| > | </SCRIPT>
| > | </Body>
| > |
| > |
| > | Or do I have to wait for the next release of directX?
| > |
| > | Thanks
| > |
| > | Ed
| > |
| > |
| > |
| > |
| >
|
|
|



Mon, 18 Apr 2005 06:39:12 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. VB.NET: Steps for Converting a Windows .NET Application to a Web .NET Application

2. Convert VB.Net to C#, convert C# to VB.Net

3. Converting Access 2.0 App to VB Possible???

4. Tell me you experience in convert code from VB 6 to VB.NET or C#

5. I am learning VB.NET and am wondering....

6. QuickBasic 4.5 app need to convert to VB.net

7. Convert Office 2K App to VB.NET

8. Convert Access App (.MDB) to VB.NET

9. convert app written in VB to the net

10. ASP.NET App v. VB.NET App

11. Conversion of VB.Net App to ASP .Net App

12. Code Convert from C# to VB.Net

 

 
Powered by phpBB® Forum Software