sbsv1/buildsystem/test/binaryvariation/UseStaticDLL.cpp
changeset 599 fa7a3cc6effd
equal deleted inserted replaced
596:9f25be3da657 599:fa7a3cc6effd
       
     1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // A simple program which uses the statically linked dll  "eulibd1b.dll"
       
    15 // 
       
    16 //
       
    17 
       
    18 // standard example header
       
    19 #include "CommonFramework.h"
       
    20 #include "InvariantStaticDLL.h"
       
    21 #include "VariantStaticDLL.h"
       
    22 
       
    23 _LIT(KTxt1,"statically linked DLL example \n\n");
       
    24 
       
    25 #ifdef FEATURE_VARIANT_DEFAULT
       
    26 	_LIT(KTxt2,"Hello from variant_default!");
       
    27 #endif
       
    28 
       
    29 #ifdef FEATURE_VARIANT_A
       
    30 	_LIT(KTxt2,"Hello from variant_a!");
       
    31 #endif
       
    32 
       
    33 #ifdef FEATURE_VARIANT_B
       
    34 	_LIT(KTxt2,"Hello from variant_b!");
       
    35 #endif
       
    36 
       
    37 _LIT(KTxtNewLine,"\n");
       
    38 
       
    39 LOCAL_C void doExampleL()
       
    40     {
       
    41 	console->Printf(KTxt1);
       
    42 
       
    43 	CInvMessenger* myInvMessage = CInvMessenger::NewLC(*console, KTxt2);
       
    44 	myInvMessage->ShowMessage();
       
    45 
       
    46 	console->Printf(KTxtNewLine);
       
    47 
       
    48 	CVarMessenger* myVarMessage = CVarMessenger::NewLC(*console, KTxt2);
       
    49 	myVarMessage->ShowMessage();
       
    50 
       
    51 	console->Printf(KTxtNewLine);
       
    52 	CleanupStack::PopAndDestroy(); 
       
    53 	}
       
    54 
       
    55