Friday, September 21, 2007

If you write applications that query a database - any database - then you might want to check out my new article on data caching.

9/21/2007 12:09:11 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [1]  | 

If you do as much development on devices as we do, I'm sure you would appreciate a tool like Remote Process Viewer, but that runs on the device.  Something like the Task Manager on the desktop, right?  Well we've finally productized and released a tool we wrote and have been using internally for quite some time called TaskManCF.  It gives you the ability to kill an app (via WM_CLOSE like the "Running Programs" applet) Terminate a process (via Terminate Process), suspend, kill or change the priority of *any* thread in the system plus view all loaded modules.

It runs on CE or Pocket PC/WM (not Smartphone - sorry) and, as the name implies, uses the Compact Framework version 2.0.

Get the evaluation version or purchase it here

9/21/2007 10:24:19 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [0]  | 
 Thursday, September 20, 2007

In case you've missed it, the OpenNETCF Community Site publishes articles relevent to mobile and embedded developers.  We just published the latest entitled Developing Connected Smart Device Application with SqlClient. Check it (and the previous articles) out.

9/20/2007 6:19:52 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0]  | 
 Monday, September 17, 2007

If you've ever tried to play a media file in your own managed application on a generic CE device then you know just how utterly painful it can be.  Often develoeprs resort to ugly hacks involving sending Media Player key strokes and trying to hide its menus and buttons.

Well no more!  We've just released a new control for managed developers that allows you to drop the video on your form where you want then control playback from a sensible API.  We've even created a nice sample application that provides an example of what you can do with the control.

 

Get more info here.

 

9/17/2007 12:20:21 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0]  | 
 Thursday, September 06, 2007

So we've already gotten a submission for this month's coding competiton called FlowFx, and I must say it's pretty damned nice.  I'd say this one sets the bar for the quality of what needs to be submitted.

Take a look at the video of the UI in action.

Enter your Windows Mobile or Embedded code for a change to win some cool prizes this month and every month at http://community.opennetcf.com

9/6/2007 6:29:24 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0]  | 
 Tuesday, September 04, 2007

Today we were working on some final testing of a new app and I was irritated by the About Form's behavior of generice CE devices.  When we went to display the form, we'd get the ugly "expanding rectangle" animation of the Form opening, and even worse, when we closed it it would animate the close, then animate the re-opeing of the main form.

Unfortunately the Compact Framework give us absolutely nothing for controlling this behavior (hello?  Windows Mobile isn't the only platform the CF is used on....).  So we have to work around it.

Add the following to your form (or a utility class is what we actually used, as we called this from multiple places):

private const int WS_EX_NOANIMATION = 0x04000000;
private const int GWL_EX_STYLE = -20;

[DllImport("Coredll.dll", SetLastError=true)]
private static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);

[DllImport("coredll.dll", SetLastError=true)]
private static extern int GetWindowLong(IntPtr hWnd, int nIndex);

internal static void StopAnimation(Form form)
{
    int style = GetWindowLong(form.Handle, GWL_EX_STYLE);
    style |= WS_EX_NOANIMATION;
    SetWindowLong(form.Handle, GWL_EX_STYLE, style);
}

Then simply call StopAnimation in your Form's constructor immediately after InitializeComponent is called:

public Form1()
{
    InitializeComponent();
    StopAnimation(this);
}

We'll probably add this to the next release of the Smart Device Framework.

9/4/2007 4:41:52 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [0]  | 

This morning OpenNETCF announced a new web initiative - our Community Web Site. I'll spare you explaining it in detail here, as it's on the front page of the site, but we've got articles and white papers, a public SVN server for shared-source projects and a monthly coding competition. This month we're giving away a copy of Studio 2005 professional and a Windows Mobile 5.0 device of your choice.

To come are Forums and a Wiki.

Let us know what you think.

9/4/2007 10:42:06 AM (Eastern Daylight Time, UTC-04:00)  #    Comments [0]  |