Read-only archive of the All About Symbian forum (2001–2013) · About this archive

.EXEs as servers on Symbian

1 replies · 2,579 views · Started 21 May 2004

Hi,

I know there are three types of "executable" formats for Symbian.

EXE - command line programs and servers
DLL - self-explanatory
APP - GUI program which is really a polymorphic DLL

How do I write a server app with a EXE? So far the code I compile and run on the emulator never gets called (E32Main is never invoked) or if I start it from my VC++ IDE, it starts it right away and pops up the ugliest blue screen (not BSOD, it's a normal blue console screen inside the emulator) even when I don't explicitly create a console for the program. Also, it refuses to switch to another program until I exit this app (F1 doesn't open menu). Seeing how I want my .EXE to run in the background, this won't do.

Any ideas/thoughts/witty comments?

Thanks,

Vlad

Use the epocexe targettype in your mmp file. This will create a dll in WINS and a exe on the target. You did not specify the sdk that you are using. In the new S60_v20 sdk, there is an example of writing a server. It shows the different starting points for WINS and ARMI/THUMB.

To start your server, you must write some client. The client will normally be an app.