目前,我正在将CompactFramework2.0应用程序迁移到新的Windows Embedded 7 Compact,并不得不将其重新编译为CF3.5。它编译但根本不运行。
我使用的是OpenNETCF版本2.3,在开始调试之前,我想确认它确实与CompactFramework3.5兼容。
谢谢。
编辑,这些是我正在使用的组件。
当我创建属于实现IMessageFilter的类的对象时,会发生窒息,请参阅下面的代码
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发布于 2012-08-30 17:54:59
事实证明,我是一个正在运行的,而不是Windows,所以OpenNETCF dlls不会在上面运行。
更详细的答案请看Unable to load DLL 'coredll.dll' : the specified module could not be found从克里斯。
发布于 2012-08-23 18:41:40
是的,SDF2.3与CompactFramework2.0或3.5兼容。在不知道你使用的是哪些部件的情况下,我无法进一步了解导致应用程序不运行的原因。
https://stackoverflow.com/questions/12097204
复制相似问题