针对移动设备和桌面设备进行开发

发布于 2024-09-01 09:25:46 字数 437 浏览 1 评论 0原文

我正在开始一个新项目。它将在运行 Windows CE、Windows Mobile 6 的设备上运行,并且还将有桌面版本。该软件将通过串口连接到一些设备,使用它自己的协议。基本上它会:

  • 连接到设备
  • 发送和接收信息
  • 读取和写入二进制文件

这些任务将在桌面和移动设备之间共享。我一直在搜索所需的信息,但仍然有一些疑问:

  1. 如果我创建针对 Windows CE 设备的解决方案,它是否也适用于 Windows Mobile 6?
  2. 创建一个针对 Windows CE 的类库会给我在桌面版本中使用它带来任何麻烦吗? (当我添加对该类库的引用时,我的 VS 说我可能会遇到一些意外的结果)
  3. 是否可以在运行 Windows CE 4.2 的设备上安装 .NET CF 3.5?

谢谢!

I'm starting a new project. It will run on devices running Windows CE, Windows Mobile 6 and will also have a desktop version. The software will connect to some equipments through the serial port, using it's own protocol. Basically it will:

  • connect to the equipment
  • send and receive info
  • read and write binary files

These tasks will be shared between desktop and mobile devices. I've been searching the information I need, but I still have some doubts:

  1. If I create the solution targeting Windows CE devices, will it work with Windows Mobile 6 too?
  2. Creating a class library targeting Windows CE will give me any trouble on using it in the desktop version? (when I add a reference to that class library, my VS says that I could experience some unexpected results)
  3. Is it possible to install .NET CF 3.5 on devices running Windows CE 4.2?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

何止钟意 2024-09-08 09:25:46
  1. 据我所知,Windows Mobile 6 与 Windows CE 5 兼容。我偶尔会在 Mobile 6 手机上部署 CE 4 应用程序,不会出现任何问题。

  2. 通常CE可执行文件和DLL在桌面上工作;到目前为止,我只看到它们在对 coredll.dll 使用 P/Invokes 时失败,coredll.dll 是桌面 user32.dll 的 CE 等效项。

  3. 不知道,我的 CE 4 设备没有足够的存储空间来复制安装程序:P

  1. As far as I know, Windows Mobile 6 is Windows CE 5 compatible. I occasionally deploy my CE 4 applications on my Mobile 6 phone without a problem.

  2. Usually CE executables and DLL's work on the desktop; sofar I've only seen them fail when using P/Invokes to coredll.dll, which is the CE equivalent for the Desktop's user32.dll.

  3. Don't know, my CE 4 device doesn't have enough storage space to copy the installer on it :P

生来就爱笑 2024-09-08 09:25:46
  1. 或许。 Windows Mobile 是基于 Windows CE 构建的,但它并不包含该操作系统必须提供的所有功能。如果您使用 WinMo 没有的 CE 功能,那么它将无法工作。对于为 WinMo 创建应用程序也可以这样说 - 它可能会也可能不会在 Windows CE 下运行。
  2. CF 程序集是可重定向的,这意味着桌面框架至少可以尝试运行它们。它们将运行良好,直到您遇到无法执行特定于 CE 的问题为止。例如,P/Invoking coredll、使用SIP控件、使用MessageWindow类等。如果使用两个框架通用的类就可以了。
  3. 是的。您无法直接在设备上进行调试(当然,您不应该能够这样做,但通常您可以通过手动运行 corecon 来使其工作),但它会运行得很好(假设您拥有加载所需的所有操作系统组件)无论如何,CF 运行时)。
  1. Maybe. Windows Mobile is Built on Windows CE, but it doesn't contain everything the OS has to offer. If you use a CE feature that WinMo does not have then no, it will not work. The same can be said about creating an application for WinMo - it may or may not run under Windows CE.
  2. CF assemblies are retargetable, meaning that the desktop framework can at least attempt to run them. They will run fine until you hit an issue where you cann something CE specific. For example, P/Invoking coredll, using a SIP control, using the MessageWindow class, etc. If you use classes common to both frameworks, it will be fine.
  3. Yes. You cannot debug directly on the device (well, you're not supposed to be able to but often you can get it to work by manually running corecon) but it will run just fine (assuming you have all of the OS components necessary to load the CF runtimes anyway).
巨坚强 2024-09-08 09:25:46

我想这个微软公告回答了你的最后一个问题 - 所以答案是Windows CE 4.2支持CF 3.5.

I guess that this Microsoft announcement answers your last question - so the answer is windows CE 4.2 supports CF 3.5.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文