Jump to content

Recommended Posts

Guest Palindrome
Posted

What I'd like to do is be able to press the left soft key have have a sound play every time I do this. I'd be grateful if someone could tell me how to play a sound from an embedded resource. I have found examples but none that are Smartphone specific.

Failing that is there a way to play the system sounds (like the menu sounds or that annoying clunk sound)?

Guest abejan
Posted

Is the sound to be played inside your app or regardless of the app?

If it's inside your app only, you may look into www.OpenNetCF.org and use the OpenNETCF.Multimedia.Audio namespace for an easy way of playing sounds.

abejan

Guest Palindrome
Posted

Cheers for the link. I finally got it working by making a sound class and using pInvoke.

It seem most info is out on the net somewhere, it's just a case of finding it. I only wish someone would release a Smartphone C# .NET specific book.

  • 2 weeks later...
Guest NeilC_MVP
Posted

There's no point in having a Smartphone-specific .NET Compact Framework book. The only real device between Smartphone and Pocket PC is the UI. The .NET Compact Framework is the same API set on both devices, so if you need .NET CF infomation for Smartphone, find Pocket PC stuff and it will work just as well.

Guest Palindrome
Posted

Only the UI? Great, that's gonna help a lot.

Posted

I was under the impression that there were differences, the first one that comes to mind is the lack of File Manager API for the Smartphone, i believe this to be the case?

  • 3 weeks later...
Guest Peter Foot
Posted

In terms of functionality in the Compact Framework itself, the only differences are that Smartphone has only a subset of the forms controls, and doesn't support SqlCe database.

Once you get into the realms of Platform Invoke and the API functions there are some more noticable differences. However many of the core API functionality such as file access, gdi etc are exactly the same since they are inherited from their common underlying OS (CE.NET 4.2).

It would not be economically viable to produce a Smartphone with NETCF specific book, however you'll find lots of Smartphone specific articles around the web which cover the platform specific features.

There are a number of great books on .NETCF in general, theres a fairly comprehensive list here:-

http://wiki.opennetcf.org/ow.asp?Books

Peter

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.