Wednesday, November 23, 2005

I was playing around with PlaySound today (no pun intended) and was kind of surprised to find that I could play an embedded resource wave file with one line of code (well one line past the P/Invoke declaration):

using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;

....

// P/Invoke declarations....
[DllImport("CoreDll.DLL", EntryPoint="PlaySound", SetLastError=true)]
private extern static int PlaySound(byte
[] szSound, IntPtr hMod, SoundFlags flags);

[Flags]
enum SoundFlags
{
  Alias = 0x00010000,
  Filename = 0x00020000,
  Synchronous = 0x00000000,
  Asynchronous = 0x00000001,
  Memory = 0x00000004,
  Loop = 0x00000008,
  NoStop = 0x00000010
}

...

PlaySound(((MemoryStream)Assembly.GetExecutingAssembly(
  ).GetManifestResourceStream(
  "AudioTest.tada.wav")).GetBuffer(),
  IntPtr.Zero,
  SoundFlags.Synchronous | SoundFlags.Memory);

11/23/2005 12:41:54 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
 Tuesday, November 22, 2005

A couple new articles from OpenNETCF have finally gone public:

Device Debugging and Emulation in Visual Studio 2005 from Alex Feinman
Using Visual Studio 2005 to Design User Interfaces and Data for Device Applications from Maarten Struys

11/22/2005 1:02:12 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
 Monday, November 14, 2005

Some call it myth, but here's photographic evidence of the sink in my house.

 

11/14/2005 10:27:54 PM (Eastern Standard Time, UTC-05:00)  #    Comments [1]  | 

I just got word today from the Group Program Manager of the Compact Framework team that Compact Famework 2.0 Service Pack 1 (due out next year - dates not finalized, so I won't speculate) will have the following support for general Windows CE 4.2:

  • Runtime support only
  • Supported for all WinCE processor types (i.e., not just ARM family)

The picture for integration into Studio 2005, debugging, emulators and all of that is still fuzzy, so for now I'd plan pessimistically and assume that the two points above are all you'll get, but at least it lets you move forward.

 

11/14/2005 5:08:19 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
 Friday, November 11, 2005
You Passed 8th Grade Science
Congratulations, you got 8/8 correct!
11/11/2005 10:53:31 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  | 
Your IQ Is 125
Your Logical Intelligence is Below Average

Your Verbal Intelligence is Genius

Your Mathematical Intelligence is Exceptional

Your General Knowledge is Exceptional
11/11/2005 10:53:10 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]  |