private static extern int PlaySound(String pszSound, int falgs

S

ss

hi!
i am trying to use
[DllImport("winmm.dll"]
private static extern int PlaySound(String pszSound, int falgs);

but it doesn't play the sound although it exists (even by checking
file.exist)

any solutions?
10x
 
S

Sharon

If you have .Net 2.0 installed, you can try this class:
System.Media.SoundPlayer
Sharon.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top