00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include <e32std.h>
00017 #include <e32cons.h>
00018
00019
00020 void SimpleL()
00021 {
00022 CActiveScheduler* scheduler = new CActiveScheduler;
00023 CActiveScheduler::Install(scheduler);
00024 CConsoleBase* theConsole = Console::NewL(_L("Dummy app"),TSize(KConsFullScreen,KConsFullScreen));
00025 CleanupStack::PushL(theConsole);
00026 theConsole->Printf(_L("---System Startup---\n"));
00027 theConsole->Printf(_L("---Dummy exe -------\n"));
00028 theConsole->Printf(_L("---Exiting now------\n"));
00029 CleanupStack::PopAndDestroy(theConsole);
00030 delete scheduler;
00031 }
00032
00033 GLDEF_C TInt E32Main()
00034 {
00035 CTrapCleanup* cleanupStack=CTrapCleanup::New();
00036 TRAPD(err,SimpleL());
00037 _LIT(KTxtEGSYSSTART,"EGSYSSTART");
00038 __ASSERT_ALWAYS(!err,User::Panic(KTxtEGSYSSTART,err));
00039 delete cleanupStack;
00040 return KErrNone;
00041 }