diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/eg_sys_start_8cpp-source.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/eg_sys_start_8cpp-source.html Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,53 @@ + + +TB10.1 Example Applications: examples/AppFramework/egsysStart/egSysStart.cpp Source File + + + + +

examples/AppFramework/egsysStart/egSysStart.cpp

00001 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
+00002 // All rights reserved.
+00003 // This component and the accompanying materials are made available
+00004 // under the terms of "Eclipse Public License v1.0"
+00005 // which accompanies this distribution, and is available
+00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
+00007 //
+00008 // Initial Contributors:
+00009 // Nokia Corporation - initial contribution.
+00010 //
+00011 // Contributors:
+00012 //
+00013 // Description:
+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         }
+

Generated on Thu Jan 21 10:32:54 2010 for TB10.1 Example Applications by  + +doxygen 1.5.3
+ +