Symbian3/SDK/Source/GUID-960B2F4E-9012-53EE-973A-C3426A7DD48F.dita
author Dominic Pinkman <dominic.pinkman@nokia.com>
Tue, 20 Jul 2010 12:00:49 +0100
changeset 13 48780e181b38
parent 7 51a74ef9ed63
permissions -rw-r--r--
Week 28 contribution of SDK documentation content. See release notes for details. Fixes bugs Bug 1897 and Bug 1522.

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License 
"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: 
-->
<!DOCTYPE concept
  PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="GUID-960B2F4E-9012-53EE-973A-C3426A7DD48F" xml:lang="en"><title>Dynamically
Loading Link Libraries Example Code</title><shortdesc>Examples that explain how to use Polymorphic DLLs.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
<section id="GUID-D3BB6165-14ED-44AD-83A9-C314A43D35B4"><title>Description</title> <p> <filepath>UsingDLLs</filepath> is
an example which shows how to load and use the two DLLs implemented in the
two examples <xref href="GUID-960B2F4E-9012-53EE-973A-C3426A7DD48F.dita#GUID-960B2F4E-9012-53EE-973A-C3426A7DD48F/GUID-6B26A481-BBDC-53C3-A3AA-8CA3EA0F9F30">PolymorphicDLL1</xref> and <xref href="GUID-960B2F4E-9012-53EE-973A-C3426A7DD48F.dita#GUID-960B2F4E-9012-53EE-973A-C3426A7DD48F/GUID-BE92D9E1-5C3E-5276-86E9-07BD751187A4">PolymorphicDLL2</xref>.
Both DLLs implement the same interface in different ways. </p> <p>Note that
this example just shows basic principles. In practice, applications will use
the ECOM mechanism to load DLLs. </p> </section>
<section id="GUID-0CF0BBCF-8FE1-4DB6-AA07-3CBAB0BAFCD2"><title>Build Notes</title> <p> <xref href="GUID-960B2F4E-9012-53EE-973A-C3426A7DD48F.dita#GUID-960B2F4E-9012-53EE-973A-C3426A7DD48F/GUID-6B26A481-BBDC-53C3-A3AA-8CA3EA0F9F30">PolymorphicDLL1</xref> and <xref href="GUID-960B2F4E-9012-53EE-973A-C3426A7DD48F.dita#GUID-960B2F4E-9012-53EE-973A-C3426A7DD48F/GUID-BE92D9E1-5C3E-5276-86E9-07BD751187A4">PolymorphicDLL2</xref> must
be built before <filepath>UsingDLLs</filepath>. </p> </section>
<section id="GUID-8D80DB9E-08AC-42D7-8FB9-2717BAB76E45"><title>Class summary</title><p> <xref href="GUID-25327159-83D6-3507-B187-09EA4BB3727F.dita"><apiname>RLibrary </apiname></xref>  <xref href="GUID-0DD554D7-B9B1-3FD3-898F-4D855144FCEA.dita"><apiname>CleanupStack </apiname></xref> <xref href="GUID-E263C747-946F-35AA-9F1D-41833BD350FC.dita"><apiname>RFs</apiname></xref>  </p></section>
<section id="GUID-6B26A481-BBDC-53C3-A3AA-8CA3EA0F9F30"><title>PolymorphicDLL1:
polymorphic interface DLL 1</title><p> Part of</p><p><xref href="GUID-960B2F4E-9012-53EE-973A-C3426A7DD48F.dita#GUID-960B2F4E-9012-53EE-973A-C3426A7DD48F/GUID-F99F3254-BB8A-5BE5-8D25-6BD14F2CC38C">Using polymorphic interface DLLs</xref></p> </section>
<section id="GUID-BE92D9E1-5C3E-5276-86E9-07BD751187A4"><title>PolymorphicDLL2:
polymorphic interface DLL 2</title><p>Part of </p><p><xref href="GUID-960B2F4E-9012-53EE-973A-C3426A7DD48F.dita#GUID-960B2F4E-9012-53EE-973A-C3426A7DD48F/GUID-F99F3254-BB8A-5BE5-8D25-6BD14F2CC38C">Using polymorphic interface DLLs</xref></p> </section>
<section id="GUID-F99F3254-BB8A-5BE5-8D25-6BD14F2CC38C"><title>UsingDLLs:
using polymorphic interface DLLs</title> <p><b>Download</b> </p> <p>Download
the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-ba7b9fcb-839a-45e8-be09-00bba76a0895.zip" scope="external">Dll.zip</xref></p><p> Download some additional files required
by the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-4184e6d4-8dbe-4267-b1a3-8737c8bf64ce.zip" scope="external">CommonFramework.zip</xref> </p> <p><b>Example code</b> </p><p>Click: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-ba7b9fcb-839a-45e8-be09-00bba76a0895.html" scope="peer">browse</xref> to view the example code.</p><p>Click: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-4184e6d4-8dbe-4267-b1a3-8737c8bf64ce.html" scope="peer">browse</xref> to view the addition file.</p> </section>
</conbody></concept>