lowlevellibsandfws/apputils/engineering/stringpool/example/StringTableExample.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 27 Apr 2010 18:23:16 +0300
branchRCL_3
changeset 20 a2e897c5c62b
parent 0 e4d67989cc36
permissions -rw-r--r--
Revision: 201012 Kit: 201017

// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

#include <e32base.h>
#include <e32svr.h>
#include <stringpool.h>
#include "examplestringtable.h"

void StartL()
	{
	TBuf<100> buf;
	RStringPool pool;
	pool.OpenL(ExampleStringTable::Table);
	buf.Copy(pool.StringF(ExampleStringTable::EApple, ExampleStringTable::Table).DesC());
	RDebug::Print(buf);
	}

// main loop
//
GLDEF_C TInt E32Main()
    {
	// Install exception handler
	CTrapCleanup* theCleanup = CTrapCleanup::New(); 
	TRAPD(err,StartL());
	delete theCleanup;
    return(KErrNone);
	}