没有 UI 的 Windows Mobile 应用程序(类似服务)

发布于 2024-09-30 10:34:14 字数 315 浏览 0 评论 0原文

我正在开发Windows Mobile应用程序,它将在系统启动时自动启动。我需要将此应用程序作为服务运行,加载时不应显示 UI(进度指示)并在加载时进行一些处理。

我尝试使用 http://managementserviceswm.codeplex.com/ 但它显示 UI(进度指示)作为我的应用程序在启动时正在执行繁重的处理。有没有什么方法可以在后台(或非 UI 线程)进行处理,这不会影响用户与设备的交互,并且不会显示设备中正在发生某些事情的进度指示?

I am developing Windows Mobile Application which will be automatically started in system startup. I need to run this application as service that should not show UI (Progress indication) when it loads and do some processing while loading.

I tried to use http://managedserviceswm.codeplex.com/ but it shows UI (Progress indication) as my application is doing heavy processing on start up. Is there any way to do the processing in background (or NON-UI thread) which will not effect user interaction with device and does not show Progress Indication that something is going on in device?

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

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

发布评论

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

评论(1

梦年海沫深 2024-10-07 10:34:14

执行引擎在加载和 JIT 运行应用程序所需的程序集时显示等待光标。没有办法阻止这种形式的发生。您所能做的就是尝试通过将构造函数和静态初始化的数量保持在最低限度来最小化它,并在 CLR 完成所有加载后构建对象。

The wait cursor is shown by the execution engine as it loads and JITs the necessary assemblies to run your application. There is no way to prevent that form happening. All you can do is attempt to minimize it by keeping the amount of constructor and static initialization to a minimum and build up the objects after the CLR has done all of its loading.

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