简体   繁体   English

如何在C#中模拟/调试Windows CE 5.0应用程序?

[英]How do I Emulate/Debug Windows CE 5.0 applications in C#?

Here's my problem. 这是我的问题。 I'm currently trying to develop a .Net Compact Framework 2.0 application (in C#) to a Windows CE 5.0 device. 我目前正在尝试将.Net Compact Framework 2.0应用程序(在C#中)开发到Windows CE 5.0设备。

Firstly: How do I debug/emulate the application in Visual Studio 2008 ? 首先:如何在Visual Studio 2008中调试/仿真应用程序? I doesn't mean debugging an application already deployed on the device, but debugging the version on my desktop. 我并不是说调试已经部署在设备上的应用程序,而是调试桌面上的版本。 I have limited or no access to the prototype device. 我访问原型设备的权限有限或没有访问权限。

Secondly: How do I integrate it with the OS image made by Platform Builder for Windows CE 5.0 ? 其次:如何将其与Platform Builder for Windows CE 5.0制作的OS映像集成? Do I need to ? 我需要吗?

Thank you for your time 感谢您的时间

You have a few options. 您有几种选择。 One would be to install the Emulator BSP, roll your own emulator image, build a custom SDK and install it, then debug targeting that emulator. 一种是安装仿真器BSP,滚动自己的仿真器映像,构建自定义SDK,然后安装它,然后针对该仿真器进行调试。 It's fairly simple to do. 这很简单。

That said, I still wouldn't do it. 也就是说,我仍然不会这样做。 A far better option is to just go buy a cheap WinCE device like an eBox 4300 jump start kit . 更好的选择是直接购买廉价的WinCE设备,例如eBox 4300入门套件 It's way easier, faster and and more reliable to target real iron. 瞄准真正的铁,变得更容易,更快和更可靠。

As for integrating the app, it's like any other. 至于集成应用程序,就像其他任何应用程序一样。 Make sure you have the CF component included in your OS design from the Catalog, then add your app to your PROJECT.BIB (and REG and/or DAT files if needed) and run makeimg again. 确保目录中的操作系统设计中包含CF组件,然后将您的应用添加到PROJECT.BIB(以及需要的REG和/或DAT文件)中,然后再次运行makeimg。

You should use the emulator which comes with the CE SDK. 您应该使用CE SDK随附的仿真器。 You can use that directly from vs.net, and it has all win CE features. 您可以直接从vs.net使用它,它具有所有赢取的CE功能。 DEbugging then works on that emulator, so you can step through your code as if it's running on a device. 然后,调试就可以在该仿真器上进行,因此您可以像在设备上运行代码一样逐步执行代码。

Okay, so thanks everyone for the quick and nice answers. 好的,谢谢大家的快速回答。 Although I've found my own solution yours may be as valid as mine. 尽管我已经找到了自己的解决方案,但您的解决方案可能和我的一样有效。

Basically what I didn't tell you (because I didn't really know it either) is that I didn't actually need to emulate the OS, I only needed to work with the framework. 基本上,我并没有告诉您(因为我也不是很了解),是我实际上不需要模拟操作系统,我只需要使用框架即可。 I found the best way to "emulate" such situation here . 我在这里找到了“模仿”这种情况的最佳方法。

Also, I found that the easiest way to deploy the application to the device is to use ActiveSync and I found just the right (MSDN) article for it. 另外,我发现将应用程序部署到设备的最简单方法是使用ActiveSync,并且找到适合的(MSDN)文章

Ctacke: It's probably due to my only learning this type of development, I somehow made an error while creating/installing "my own SDK" so the Visual Studio stopped functioning properly. Ctacke:可能是由于我只学习了这种类型的开发,在创建/安装“我自己的SDK”时我以某种方式出错了,因此Visual Studio停止正常运行。 But of course some digging made that go away. 但是,当然,一些挖掘使这一点消失了。 Thanks anyway. 不管怎么说,还是要谢谢你。 I liked the idea of developing with a testing device, unfortunately the company I work for already picked a device but they couldn't issue me a prototype for development purposes yet. 我喜欢用测试设备进行开发的想法,很不幸,我所工作的公司已经选择了一种设备,但是他们还不能为开发目的而向我提供原型。

Frans, I haven't found your CE simulator, but I'm pretty sure that I didn't look for it enough so thanks. Frans,我还没有找到您的CE模拟器,但是我可以肯定我没有找到足够的它,谢谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows Embedded CE 5.0移动应用程序gridview C# - Windows Embedded CE 5.0 mobile app gridview C# Windows 10开发:如何调试Java代码消耗的Windows运行时组件(用C#编写) - Windows 10 Development : How do I debug the Windows Runtime Component (written in C#) which is consumed by Javascript code 如何处理Windows应用程序中的错误 - How Do I Handle errors in Windows Applications 如何将字符串值保存到c#Windows应用程序中的另一个字符串 - How to save string value to another string in c# Windows Applications 如何在Windows CE设备上调试正在运行的.NET程序 - How to debug a running .NET program on a Windows CE device 如何在c#的通用Windows应用程序中包含计时器 - How do I include a timer in a universal windows app with c# 如何以编程方式从富文本框编译 C# Windows Forms 应用程序? C# - How do I programmatically compile a C# Windows Forms App from a richtextbox? C# 如何将 System.Windows.Forms 添加到我的 .NET 5.0 项目中? - How do I add System.Windows.Forms to my .NET 5.0 project? 如何在 Visual Studio 中调试 Windows 服务? - How do I debug Windows services in Visual Studio? 如何在 Visual Studio 中调试 Windows PowerShell 模块? - How do I debug a Windows PowerShell module in Visual Studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM