Back from the Dead

I knew it’d been a while since I’d updated my blog, but the realization that it’d had been nearly a year since my last post shocked me some.  I mean, I’ve told people it’d been nearly a year, but didn’t really believe it until I saw the date myself.  Well, it’s time to rectify that…

0

A Simple Resource Helper Class

using System;using System.Reflection;using System.IO;using System.Runtime.CompilerServices; /// <summary>/// A simple helper class for extracting Resources from the /// calling assembly/// </summary> public class ResourceHelper{   private static Stream GetStream(Assembly assembly, string ResourceName)   {      if (ResourceName != null && ResourceName.Trim() != string.Empty)      {         ResourceName = ResourceName.Trim();         foreach (string name in assembly.GetManifestResourceNames())            if (string.Compare(ResourceName, name, true) == 0)               return assembly.GetManifestResourceStream(name);          ResourceName = ResourceName.ToUpper();         foreach (string name in assembly.GetManifestResourceNames())            if…

8

PocketOutlook and COM Interop

New to the .NET Compact Framework in Whidbey Beta 1 is a feature known as COM Interop.  Among other things, this feature allows simple managed access to a number of Native APIs, including the Pocket Outlook Object Model (POOM).  Steven has posted a great article on getting POOM into your Whidbey project (I highly recommend reading…

0

Space Exploration (Way Off Topic)

It is my intention to keep this blog parimarily technical, but I feel the need to make an off topic post today. For those that do not know, today is the 35th Anniversary of Neil Armstrong’s famous first step out onto the moon, one of a few truly monumental events in the history of our…

3

Working from Home

Is there anything better than working from home? I’m sitting on my back porch today, wireless laptop at the ready, 10 month old Chocolate Lab at my feet, staring out at the beautiful rarity known as a “Sunny Seattle Day”.  Today, it was my step-daughter’s doctor appointment that prompted the day at home.  Tomorrow it…

3

How do I get the “right” Device ID?

I’ve been asked more than once how to go about getting the “right” Device ID from managed code.  There’s a myth floating around (to which, for a short time, I myself subscribed) that a device has multiple Device IDs, or that there’s some trick to getting the one “true” Device ID. Getting the device ID…

4

A Simple Device ID Class

I’ve received a number of questions regarding how best to retrieve the Device ID.  As a result, I’ve decided to provide the following class for your coding pleasure: — jehThis posting is provided “AS IS“, without warranties, and confers no rights. using System;using System.Runtime.InteropServices;namespace DeviceID{ public sealed class DeviceIDException : Exception {  public DeviceIDException() : base() {}  public DeviceIDException(string message)…

4

Why Doesn’t My Desktop App Work on CF (Anymore)?

The Desktop Framework and the CF Framework have different Public Key Tokens as part of their strong name.  The Desktop framework commonly uses two different Key Tokens (b77a5c561934e089 and b03f5f7f11d50a3a), while CF currently uses one (969db8053d3322ac).  CF does not map Desktop references to CF assemblies, so any application referencing Desktop assemblies should never work on…

1

Now Open For Business

My name is Jeremy Hance, and I’m an SDET on the Compact Framework team.  Officially, SDET = Software Development Engineer in Test.  In my position, I write code used to test the functionality of the Compact Framework.  Primarily, I work with the Global Assembly Cache (GAC), the Loader, and Native Interop (including COM Interop, which…

2