문제

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.

Thank you.

EDITED, these are the components I am using.

  • using OpenNETCF.IO;
  • using OpenNETCF.Windows.Forms;
  • using OpenNETCF.WindowsCE;
  • using OpenNETCF.WindowsCE.Notification;
  • using OpenNETCF.Threading

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
도움이 되었습니까?

해결책 2

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.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top