The Managed APIs in Windows Mobile 5.0 expose the Contact.WebPage as a Uri. The problem with this approach is that the user forms are free text and you can enter anything into this field. Probably 9 times out of 10 you’ll enter an address such as http://www.peterfoot.net And because the managed API passes this to […]
Category: NETCF
OpenNETCF.Windows.Forms.Control2 in SDF 2.0
In SDF v1 I wrote a class called ControlEx which would allow you to host a native windows control within a managed Control. This was the subject of an MSDN article (of which much of the concept applies here too). The implementation was rather convoluted to work around the limits of .NETCF v1.0, and the […]
OpenNETCF.IO in SDF 2.0
As well as the revolutionary changes in the SDF v2.0, some of which are simply only made possible by improvements in .NETCF v2.0, we have used this opportunity to make a number of evolutionary changes too. For example I’m going to take a quick trip through the file functionality in the OpenNETCF.IO namespace:- DriveInfo – […]
GetDeviceUniqueID For VB
To complement the C# version posted Here, here is a working VB translation:- <System.Runtime.InteropServices.DllImport(“coredll.dll”)> _Private Shared Function GetDeviceUniqueID(ByVal appdata As Byte(), ByVal cbApplictionData As Integer, ByVal dwDeviceIDVersion As Integer, ByVal deviceIDOuput As Byte(), ByRef pcbDeviceIDOutput As Integer) As IntegerEnd FunctionPrivate Function GetDeviceId(ByVal appData As String) As Byte()Dim appDataBytes As Byte() = System.Text.Encoding.ASCII.GetBytes(appData)Dim outputSize As Integer […]
The full build and AKU version of a device is shown on the Start > Settings > System > About screen, however what if you want to determine the version from your code. Well starting with Windows Mobile 5.0 there is now a registry key which holds the AKU version e.g. RegistryKey kAku = Registry.LocalMachine.OpenSubKey(“SystemVersions”);string […]
This bug affects both managed and native developers working with the Windows Mobile 5.0 SDK. Native Due to an error in snapi.h the location of the registry key used to indicate if a hardware keyboard is present is incorrect:- ////////////////////////////////////////////////////////////////////////////////// KeyboardPresent// Gets a value indicating whether a keyboard is attached and enabled.#define SN_KEYBOARDPRESENT_ROOT HKEY_LOCAL_MACHINE#define SN_KEYBOARDPRESENT_PATH […]
Luis Cabrera has posted the details of a bug identified in the Talk method to the Windows Mobile Team blog. The workaround (see the original post) is to append a null character to the end of your dial string. Note: this bug doesn’t affect InTheHand.WindowsMobile.Telephony.Phone.Talk.
PocketOutlook Native Managed Map
Windows Mobile 5.0 introduces a managed API which wraps both POOM and a subset of CEMAPI (enough to send an Email / Sms). The table below is designed to show how the managed objects map to the interfaces which will be familiar to seasoned POOM developers. It also shows those parts of POOM which are […]
XmlSerialization of DateTime in .NETCF 2.0
Changes have been made to the DateTime type in v2.0 to help indicate whether a specific value represents a local time or universal time. What this can mean is that the behaviour of web services using DateTimes will change. This article has full details of the issue:- http://blogs.msdn.com/mattavis/archive/2005/10/11/479782.aspx The same approach is available under .NETCF […]
When you want to create a meeting request with managed POOM on WM5.0 you start by creating an Appointment and then add Recipient objects to it’s Recipients collection. However what the documentation doesn’t tell you is that you have to ensure that your Recipient has both the Name and Address properties. For example:- Microsoft.WindowsMobile.PocketOutlook.Appointment ma […]
