使用Compact Framework将应用程序移植到WINCE700 [英] Porting application to WINCE700 with Compact Framework

查看:65
本文介绍了使用Compact Framework将应用程序移植到WINCE700的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我会在Windows Embedded项目中使用一个简单的记事本项目,为此我创建了一个新的"智能设备"。项目和在这个项目中我已经包含了原始的源文件。

I would using a simple Notepad project in a Windows Embedded project, to get this I have created a new "Smart Device" project and in this project I have included the original source file.

当我尝试构建项目时,我得到了下面显示的错误,我已经检查了References和System.Windows.Forms是否存在。

When I try to build the project I get the error showed below, I have checked the References and the System.Windows.Forms is present.

您是否有一些提示如何解决这个问题?

Have you some tips how to solve this problem ?

谢谢。

Best问候。

Flavio

Flavio

错误
2
类型或命名空间名称'ContextMenuStrip'不能是找到了(你是否缺少using指令或汇编引用?)
D:\SyncFolder \ Project VVV5000 \VVV5000-WINCE700 \CENotepad\Form1.cs
12

Error 2 The type or namespace name 'ContextMenuStrip' could not be found (are you missing a using directive or an assembly reference?) D:\SyncFolder\Project VVV5000\VVV5000-WINCE700\CENotepad\Form1.cs 12

错误 3 < span style ="white-space:pre">
无法找到类型或命名空间名称"ToolStripMenuItem"(您是否缺少using指令或程序集引用?)
D:\SyncFolder \ Project VVV5000 \VVV5000-WINCE700 \Cnotepad \Form1.cs
14

错误 10
找不到类型或命名空间名称'ToolStripSeparator'(您是否缺少using指令或程序集引用?)
D: \ SyncFolder \ Project VVV5000 \VVV5000-WINCE700 \CENotepad\Form1.cs
22

错误 36
类型或命名空间名称'FontDialog'找不到(你错过了使用指令或汇编引用吗?)
D:\SyncFolder \ Project VVV5000 \VVV5000- WINCE700 \CENotepad \Form1.cs
53

错误 37
无法找到类型或命名空间名称"PageSetupDialog"(您是否缺少using指令或程序集引用? )
D:\SyncFolder \ Project VVV5000 \VVV5000-WINCE700 \CENotepad \Form1.cs
54

错误 38
找不到类型或命名空间名称'MenuStrip'(您是否缺少using指令或汇编引用?)
D:\SyncFolder \ Project VVV5000 \VVV5000-WINCE700 \ C ENotepad\Form1.cs
58

Error 3 The type or namespace name 'ToolStripMenuItem' could not be found (are you missing a using directive or an assembly reference?) D:\SyncFolder\Project VVV5000\VVV5000-WINCE700\CENotepad\Form1.cs 14
Error 10 The type or namespace name 'ToolStripSeparator' could not be found (are you missing a using directive or an assembly reference?) D:\SyncFolder\Project VVV5000\VVV5000-WINCE700\CENotepad\Form1.cs 22
Error 36 The type or namespace name 'FontDialog' could not be found (are you missing a using directive or an assembly reference?) D:\SyncFolder\Project VVV5000\VVV5000-WINCE700\CENotepad\Form1.cs 53
Error 37 The type or namespace name 'PageSetupDialog' could not be found (are you missing a using directive or an assembly reference?) D:\SyncFolder\Project VVV5000\VVV5000-WINCE700\CENotepad\Form1.cs 54
Error 38 The type or namespace name 'MenuStrip' could not be found (are you missing a using directive or an assembly reference?) D:\SyncFolder\Project VVV5000\VVV5000-WINCE700\CENotepad\Form1.cs 58

推荐答案

您是否只是粘贴(或包含)一些现有的桌面项目文件来获取记事本项目? 这些听起来像是你在使用桌面Winforms代码并尝试在CompactFramework中使用它时会遇到的错误。

Did you just paste (or include) some existing desktop project files to get your notepad project?  Those sound like errors you get when you take desktop Winforms code and try to use it in the CompactFramework.

不幸的是,CompactFramework(尤其是WinForms)是完整框架和桌面的一个相当小的子集代码不会按原样运行。 对于像记事本应用程序这样简单的东西,你可能最好只使用向导创建一个新的CompactFramework应用程序
,只需添加一个编辑框和一些菜单项。

Unfortunately the CompactFramework (especially WinForms) is a fairly small subset of the full framework and desktop code won't work as-is.  For something as simple as a Notepad app, you might be better off just creating a new CompactFramework application using the Wizard and just adding an Edit box and a few menu items.

这篇关于使用Compact Framework将应用程序移植到WINCE700的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆