daemon program for PocketPC
-
Hello, I 'm trying to create a simple program that would run like a daemon for PocketPC and I have the eMbedded Visual C++ 4.0 IDE. I choose to create a new project and my options are limited to applications with GUIs, a WinMain() etc. I want to write a very simple unix like non-gui program in C. I don't even need a console. Is there any way to avoid all these windows specific chaos code? Thanks, Themis
-
Hello, I 'm trying to create a simple program that would run like a daemon for PocketPC and I have the eMbedded Visual C++ 4.0 IDE. I choose to create a new project and my options are limited to applications with GUIs, a WinMain() etc. I want to write a very simple unix like non-gui program in C. I don't even need a console. Is there any way to avoid all these windows specific chaos code? Thanks, Themis
You can start from 'WCE Application' or 'WCE Pocket PC 2003 Application'. On the first page of the wizard, select 'A simple Windows CE application'. This generates a StdAfx.h for common includes and definitions, StdAfx.cpp (which causes precompiled headers to be generated for StdAfx.h) and project.cpp, which contains a
WinMain
routine. Pocket PC does not support the C standardmain
routine. The Windows CE C run-time library does not provide themainCRTStartup
routine that the desktop provides. You should useWinMain
instead. Please be aware that Windows CE only supports a total of 32 concurrent processes - this is a consequence of the single-memory-map design. A number of those process slots are already running at startup time - the device driver host process device.exe, the Graphics Windowing and Events Subsystem gwes.exe, the file system process filesys.exe, and others. CE 4.x and later provide a Services host process for hosting services written as DLLs. Stability. What an interesting concept. -- Chris Maunder