00001 // Copyright (c) 2000-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 // CPP file demonstrating Extension DLL pattern 00015 // This file contains the implementation of the extension functions which 00016 // have been declared in the numberstore.h file. 00017 // These file will be built into extensiondll.dll and thus in order to use 00018 // this function a client must link to extensiondll.lib 00019 // NOTE this file is unchanged from the version used previously, but it must be 00020 // rebuilt to align with the rearranged ordinals in originaldll_v2 00021 // 00022 00023 #include "NumberStore_v2.h" 00024 00025 //Implementation of the added function 00026 00027 EXPORT_C TInt CNumberStore::AddNumbers () const 00028 { 00029 return (iNumber1+iNumber2); 00030 } 00031 00032 EXPORT_C TInt CNumberStore::MultiplyNumbers() const 00033 { 00034 return DoMultiplyNumbers(); 00035 }