N Nicholas Paldino [.NET/C# MVP] Jan 26, 2004 #2 Rajesh, I am not positive, but you can check to see if the PlaySound API function is there. Hope this helps.
Rajesh, I am not positive, but you can check to see if the PlaySound API function is there. Hope this helps.
I Ignacio Machin \( .NET/ C# MVP \) Jan 26, 2004 #3 Hi Rajesh, The CF has no support for multimedia, you have to P/Invoke them , I'm using the below declaration: [DllImport("coredll")] public static extern bool PlaySoundW( string szSound, int hMod, int flags ); PlaySoundW("bing.wav", 0, 0x00000001); IIRC in the quickstart of gotdotnet you have an example ( maybe the same above), this is the url: http://samples.gotdotnet.com/quickstart/CompactFramework/ Hope this help,
Hi Rajesh, The CF has no support for multimedia, you have to P/Invoke them , I'm using the below declaration: [DllImport("coredll")] public static extern bool PlaySoundW( string szSound, int hMod, int flags ); PlaySoundW("bing.wav", 0, 0x00000001); IIRC in the quickstart of gotdotnet you have an example ( maybe the same above), this is the url: http://samples.gotdotnet.com/quickstart/CompactFramework/ Hope this help,
W William Ryan Jan 26, 2004 #4 You can write the code yourself using the PlaySound API (http://samples.gotdotnet.com/quickstart/CompactFramework/doc/playsounds.asp x) or you can use the Multimedia Library at www.opennetcf.org which wraps this for you. The first one will work, but the OpennetCF implementation gives you a lot more power to do other things. If you are new to CF programming, I highly recommend the quickstarts above, as well as www.opennetcf.org and www.devbuzz.com All of them have some excellent information
You can write the code yourself using the PlaySound API (http://samples.gotdotnet.com/quickstart/CompactFramework/doc/playsounds.asp x) or you can use the Multimedia Library at www.opennetcf.org which wraps this for you. The first one will work, but the OpennetCF implementation gives you a lot more power to do other things. If you are new to CF programming, I highly recommend the quickstarts above, as well as www.opennetcf.org and www.devbuzz.com All of them have some excellent information