|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-960B2F4E-9012-53EE-973A-C3426A7DD48F" xml:lang="en"><title>Dynamically |
|
13 Loading Link Libraries Example Code</title><shortdesc>Examples that explain how to use Polymorphic DLLs.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <section id="GUID-D3BB6165-14ED-44AD-83A9-C314A43D35B4"><title>Description</title> <p> <filepath>UsingDLLs</filepath> is |
|
15 an example which shows how to load and use the two DLLs implemented in the |
|
16 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>. |
|
17 Both DLLs implement the same interface in different ways. </p> <p>Note that |
|
18 this example just shows basic principles. In practice, applications will use |
|
19 the ECOM mechanism to load DLLs. </p> </section> |
|
20 <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 |
|
21 be built before <filepath>UsingDLLs</filepath>. </p> </section> |
|
22 <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> |
|
23 <section id="GUID-6B26A481-BBDC-53C3-A3AA-8CA3EA0F9F30"><title>PolymorphicDLL1: |
|
24 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> |
|
25 <section id="GUID-BE92D9E1-5C3E-5276-86E9-07BD751187A4"><title>PolymorphicDLL2: |
|
26 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> |
|
27 <section id="GUID-F99F3254-BB8A-5BE5-8D25-6BD14F2CC38C"><title>UsingDLLs: |
|
28 using polymorphic interface DLLs</title> <p><b>Download</b> </p> <p>Download |
|
29 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 |
|
30 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> |
|
31 </conbody></concept> |