|
<<
Page 1 of 2
>>
Disable the Touch Screen
Peter Foot
writes "If you really need to disable the touch screen on a device, there is a method available, but you'll need to soft-reset the device to restore the functionality. You can call the TouchPanelDisable API, it's not documented in the Windows Mobile SDKs but you'll find it in the CE documentation, declaration is very simple..."
Take a Shortcut
Peter Foot
writes "There are a number of ways you can make use of Shortcuts within your project. You may create a shortcut to your application during your CAB file installation - either on the Start Menu or perhaps in the \Windows\Startup folder. VS2005 makes this easy because it has a nice file system graphical editor for CAB projects. Another way you can use shortcuts is within your code itself. There are two API functions to support this - SHCreateShortcut and ..."
Contact.WebPage
Peter Foot
writes "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 ...
And because the managed API passes this to the Uri constructor and it has no http:// prefix it fails and returns null. However there is a solution to workaround the issue. You can access the Properties collection and access the property and it will be returned as a string. So for example you would use:-
"
OpenNETCF.Windows.Forms.Control2 in SDF 2.0
Peter Foot
writes "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 control was constructed with a Control, which hosted a MessageWindow with some of it's style bits altered which in turn hosted the native control. Luckily hosting controls is easier in ..."
MEDC 2006 Websites are Live
Peter Foot
writes "The conference website is now live at ... Registration is now open along with details of the pre-conference session. Full session details for the conference tracks are not up yet, but you can subscribe to the RSS feeds for Application Development, Embedded and Device Management tracks..."
Indigo Reaches Beta 2 And Gets Go-Live License
Peter Foot
writes "Indigo (Yeah I know I'm supposed to call it Windows Communication Foundation), has reached the Beta 2 milestone. With this release you can apply for a Go-Live license to deploy the technology in live environments*
Read all about it here:-
"
Any Port in a Storm
Peter Foot
writes "A user posted an important observation on the Bluetooth COM support in Windows Mobile 5 here on the microsoft public pocketpc developer newsgroup. The problem is that while the system allows you to create virtual COM ports for all your paired devices which support Serial Port Profile, most of the time this will fail because the COM port you pick is already in use, on many devices you can have just 2 virtual COM ports. I've posted a few of my thoughts in the thread linked above, but while there are things that Microsoft can work to improve there are also a few things that developers can do to avoid the problem:- "
MEDC 2006 Europe
Peter Foot
writes "MEDC will be returning to a dedicated conference for Europe this year, last year saw a number of one day events and in 2004 MDC was a thread within Tech Ed Europe..."
Determine WM5.0 AKU Version Programmatically
Peter Foot
writes "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..."
KeyboardPresent always returns false
Peter Foot
writes "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:-
"
Bug in Microsoft.WindowsMobile.Telephone.Phone.Talk
Peter Foot
writes "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...
"
The ItemId in Managed PocketOutlook
Peter Foot
writes "The ItemId type is introduced to the managed APIs to represent either a POOM Oid (int) or MAPI ENTRYID (16/14 bytes). It doesn’t directly expose the underlying data but there are a couple of useful behaviours:-
"
PocketOutlook Native <-> Managed Map
Peter Foot
writes "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 not available through the managed APIs:- "
XmlSerialization of DateTime in .NETCF 2.0
Peter Foot
writes "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...
"
Reading E-Mail Through MAPI on Windows Mobile 5
Peter Foot
writes "Here is another issue I've been banging my head against a brick wall with and the workaround - although it's not a pleasant workaround by any measure.
To read the body text of an email message under WM2003 you open the ...
"
Issue with Microsoft.WindowsMobile.PocketOutlook
Peter Foot
writes "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:- "
Windows Live Local goes live
Peter Foot
writes "As the name suggests, Windows Live Local (the new name for MSN Virtual Earth) is now live. It has a fresh new look, mapping data for Europe (woohoo!), supports driving directions, custom pushpins and for a selection of US cities it has high quality "birds-eye" images. There have been some changes to the API in this version, full details of which are due to hit ..."
VS2005 and File Alignment
Peter Foot
writes "One of the transparent benefits of building your projects with VS2005 is that the default File Alignment is now set at 512 bytes, rather than the 4096 bytes which was the default for device projects in VS2003. This means if you create a new project in both versions and add exactly the same code you should notice the output dll created by VS2005 is noticably smaller.
One thing you may not realise is that the default value used ...
"
Divert system audio to a Bluetooth headset
Peter Foot
writes "In the Windows Mobile 5.0 audio gateway implementation there are a couple of control codes to turn on audio routing through the bluetooth headset/handsfree device. I've only tried this with a couple of devices and had mixed (That's a really bad audio pun sorry!) results but here's a library to allow you to try it yourself. In theory it may work on some 2003 Second Edition devices too. I'd be interested to hear your feedback.
To set audio routing just call...
"
Triple Whammy
Peter Foot
writes "I was delighted to hear the results of the Pocket PC Magazine Best Software Awards. This year the SDF has won in both Pocket PC and Smartphone categories. It's great to be involved in such a successful group project. Also I had a personal win with PocketOutlook In The Hand (now part of the WindowsMobile In The Hand suite) winning in the Smartphone .NET Developer Libraries category, along with 4 other entries reaching the Finalist stage...
"
<<
Page 1 of 2
>>
|