Posted By: asharism | Oct 31st, 2007 @ 6:34 AM
page 1 of 1
Comments: 2 | Views: 929
asharism
asharism
erm...

I am an experienced .NET developer but new to the Compact framework and the windows mobile platform.

I have a requirement to develop a windows mobile application (or service) in .NET compact framework 2.0 with the following requirements:

• Application runs in the background with no UI

• Start automatically when the device boots/restarts (soft and hard)

• Must run on both Pocket PC and Smartphone devices

I have tried searching through Google and on MSDN for a way to implement both of my above requirements; however, I could find a definitive way to implement both.

Please can anyone give me some pointers on how I can achieve this?

TIA,

Hitesh

odujosh
odujosh
Need Microsoft SUX now!
Sounds like you want to run a Windows Service. Not sure how you would differentiate a OS restart from a service restart. But this should do the trick.
odujosh wrote:
Sounds like you want to run a Windows Service. Not sure how you would differentiate a OS restart from a service restart. But this should do the trick.

But unfortunately Windows service seems does not exist in PocketPC, so you have to write a WinForm solution. Perheps you can create one project, call ResigterMessageLoop() to register your custom message loop, then change the
    Application.Run(new Form1());
in Program.cs to
    Application.Run();
in order to run your applcation windowlessly?
page 1 of 1
Comments: 2 | Views: 929
Microsoft Communities