Click here to Skip to main content
15,797,608 members
Home / Discussions / C#
   

C#

 
GeneralRe: Generating strings that are matched by a regex Pin
Kentamanos8-Jan-04 7:58
Kentamanos8-Jan-04 7:58 
GeneralRe: Generating strings that are matched by a regex Pin
leppie8-Jan-04 8:04
leppie8-Jan-04 8:04 
GeneralRe: Generating strings that are matched by a regex Pin
bnieland8-Jan-04 8:25
bnieland8-Jan-04 8:25 
GeneralMicrosoft Animation Control Pin
obelisk298-Jan-04 5:13
obelisk298-Jan-04 5:13 
GeneralRe: Microsoft Animation Control Pin
Niels Penneman8-Jan-04 7:19
Niels Penneman8-Jan-04 7:19 
GeneralRe: Microsoft Animation Control Pin
Heath Stewart8-Jan-04 7:23
protectorHeath Stewart8-Jan-04 7:23 
GeneralRe: Microsoft Animation Control Pin
obelisk298-Jan-04 11:45
obelisk298-Jan-04 11:45 
GeneralInheriting from DirectX problem ! Pin
pahluwalia8-Jan-04 3:49
pahluwalia8-Jan-04 3:49 
Hi,

I have inherited from the DirectX class to play audio files.

public class MyAudio : Microsoft.DirectX.AudioVideoPlayback.Audio
{
public string MyFile;
public MyAudio(string str) : base(str)
{ }
public MyAudio(string str, bool bln) : base(str, bln)
{ }
}

In my code:

MyAudio newAudio = (MyAudio) MyAudio.FromUrl("http://web.com/46.mp3", false);

When I run this app it gives an error on the above line:
"Specified cast is not valid" !

The declaration of FromUrl func is :

public static Microsoft.DirectX.AudioVideoPlayback.Audio FromUrl ( System.String address , System.Boolean autorun )

How can I fix this problem ? I need to inherit from this class as I want to save the name of the file this object is playing !

Frown | :(
Thanks,
Paul
GeneralRe: Inheriting from DirectX problem ! Pin
obelisk298-Jan-04 5:17
obelisk298-Jan-04 5:17 
GeneralRe: Inheriting from DirectX problem ! Pin
pahluwalia8-Jan-04 6:51
pahluwalia8-Jan-04 6:51 
GeneralRe: Inheriting from DirectX problem ! Pin
Kentamanos8-Jan-04 6:52
Kentamanos8-Jan-04 6:52 
GeneralRe: Inheriting from DirectX problem ! Pin
leppie8-Jan-04 7:13
leppie8-Jan-04 7:13 
GeneralRe: Inheriting from DirectX problem ! Pin
Heath Stewart8-Jan-04 7:14
protectorHeath Stewart8-Jan-04 7:14 
GeneralRe: Inheriting from DirectX problem ! Pin
Kentamanos8-Jan-04 7:24
Kentamanos8-Jan-04 7:24 
GeneralRe: Inheriting from DirectX problem ! Pin
leppie8-Jan-04 8:33
leppie8-Jan-04 8:33 
GeneralRe: Inheriting from DirectX problem ! Pin
leppie8-Jan-04 9:14
leppie8-Jan-04 9:14 
GeneralRe: Inheriting from DirectX problem ! Pin
pahluwalia8-Jan-04 9:02
pahluwalia8-Jan-04 9:02 
GeneralRe: Inheriting from DirectX problem ! Pin
Kentamanos8-Jan-04 10:03
Kentamanos8-Jan-04 10:03 
GeneralRe: Inheriting from DirectX problem ! Pin
pahluwalia9-Jan-04 3:45
pahluwalia9-Jan-04 3:45 
GeneralMultiple table data in dataGrid Pin
Hayat8-Jan-04 3:41
Hayat8-Jan-04 3:41 
GeneralRe: Multiple table data in dataGrid Pin
Mazdak8-Jan-04 4:18
Mazdak8-Jan-04 4:18 
GeneralRe: Multiple table data in dataGrid Pin
Heath Stewart8-Jan-04 7:04
protectorHeath Stewart8-Jan-04 7:04 
GeneralInexplicable errors on forms. Pin
Martin Cross8-Jan-04 1:39
Martin Cross8-Jan-04 1:39 
GeneralRe: Inexplicable errors on forms. Pin
Aryo Handono8-Jan-04 2:14
professionalAryo Handono8-Jan-04 2:14 
GeneralRe: Inexplicable errors on forms. Pin
Heath Stewart8-Jan-04 6:56
protectorHeath Stewart8-Jan-04 6:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.