sarsnake
sarsnake

Reputation: 27733

OpenNETCF and Compact Framework 3.5 compatibility

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.

Edited

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

Upvotes: 2

Views: 3999

Answers (2)

sarsnake
sarsnake

Reputation: 27733

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.

Upvotes: 1

ctacke
ctacke

Reputation: 67198

Yes, the SDF 2.3 is compatible with Compact Framework 2.0 or 3.5. Without knowing exactly which pieces you're using, I can't help much further on what might be causing the app to not run.

Upvotes: 3

Related Questions