I am currently migrating my Compact Framework 2.0 application to the new Windows Embedded 7 Compact machines and had to recompile it for CF 3.5. It compiles but does not run at all.
I am using OpenNETCF version 2.3 and before I start my debugging process I would like to confirm that it is indeed compatible with Compact Framework 3.5.
These are the components I am using:
The choking happens when I create the object that belongs to the class that implements IMessageFilter, see code below
public class Program
{
public static FormFilter myFilter = new FormFilter(); //chocking happens here!
public static void Main(string[] args)
{
//main code here
}
public class FormFilter : IMessageFilter
{
private frmMain _frmOwner;
//messages
static int WM_LBUTTONDOWN = 0x0201;
const int WM_CLOSE = 0x0010;
const int WM_KEYDOWN = 0x100;
//button related:
private List<Button> buttonList;
private List<TextBox> txtBoxList;
public FormFilter()
{
buttonList = new List<Button>();
txtBoxList = new List<TextBox>();
}
public bool PreFilterMessage(ref Microsoft.WindowsCE.Forms.Message m)
{ }
//watch buttons etc functions go here
} //end of FormFilter class
} //end of Program
It turns out that I am a running Windows Embedded Standard that is not Windows CE so OpenNETCF dlls will not run on it.
Please see Unable to load DLL 'coredll.dll' : the specified module could not be found for more detailed answer from Chris.