I am trying to implement a background server which keeps listening for incoming calls and once there is one incoming call, it should launch the application. Also the server has to be autorun on phone reboot and running all the time.
Now for this, i have the following code snippet
The ui application also has the same prototype of the E32Main method, GLDEF_C TInt E32Main()
GLDEF_C TInt E32Main()
CTrapCleanup* cleanup = CTrapCleanup::New();
And i have a .rss file by the name of UID3 of the app like EFC3B7DB0.rss and has following code in it
RESOURCE STARTUP_ITEM_INFO test
executable_name = "c:\\sys\\bin\\Aserver.exe";
recovery = EStartupItemExPolicyNone;
Since there are two E32Mains now, i am getting multiple definition of E32Main error. How do i get rid of this?
Can anybody suggest something?