在Windows Mobile 6.x的创建.NET Windows服务 [英] Create a .NET Windows Service on Windows Mobile 6.x

查看:138
本文介绍了在Windows Mobile 6.x的创建.NET Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个Windows服务在.NET上的WinMo 6.x的运行.... 有岭大量的文档资料怎么办,在MFC(和非MFC) http://msdn.microsoft.com/en-us/library/ms838599.aspx

I would like to create a windows service in .NET that runs on WinMo 6.x.... There r a lot of documentation for how to do that in MFC (and non-MFC) http://msdn.microsoft.com/en-us/library/ms838599.aspx

但我找不到任何指针.NET的东西,是它甚至是可行的?

but I can't find any pointers for .NET stuff, is it even doable?

谢谢

推荐答案

我是pretty的肯定(而不是100%),则只能创建一个本地的服务DLL(这意味着没有。网本)。

I'm pretty sure (not 100%) you can only create a native service DLL (which means no .Net for this).

一个解决办法是建立一个控制台应用程序(或常规应用程序,并一切从它的主要方法),并把它在 /窗/启动/ 文件夹。您的应用程序将自动每次设备复位时开始。有充分的理由的没有导入但做到这一点,因为的WinMo设备在多少个应用程序可以运行像这样的限制。

A workaround is to create a console app (or a regular app that does everything from its Main method) and drop it in the /Windows/Startup/ folder. Your app will then be started automatically every time the device is reset. There are good reasons not to do this, however, since a WinMo device is limited in how many apps can be running like this.

这篇关于在Windows Mobile 6.x的创建.NET Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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