Symbian3/SDK/Source/GUID-176FD8C9-B4A9-5B50-B683-AB5DA7D5D6F4.dita
changeset 7 51a74ef9ed63
child 13 48780e181b38
equal deleted inserted replaced
6:43e37759235e 7:51a74ef9ed63
       
     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-176FD8C9-B4A9-5B50-B683-AB5DA7D5D6F4" xml:lang="en"><title>CreateStaticDLL
       
    13 and UseStaticDLL: using a statically linked DLL</title><prolog><metadata><keywords/></metadata></prolog><conbody>
       
    14 <section id="GUID-A88465CB-D776-49CD-AA0C-1BAD59D340B6"><title>Description</title> <p>The example shows how a class implemented
       
    15 in a statically linked DLL is used. The DLL is built by <filepath>CreateStaticDLL</filepath> and
       
    16 is used by <filepath>UseStaticDLL</filepath>. </p> </section>
       
    17 <section id="GUID-D201398C-0D5C-4DA5-BEE6-A85BFDDD16BE"><title>Download</title> <p>Click on the following link
       
    18 to download the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-2e2b4dbb-291f-428c-82bf-fe796b4f50f4.zip" scope="external">StaticDLL.zip</xref></p><p>Click on the following link to
       
    19 download additional files: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-bd05bfa4-e51c-4cf7-b327-646b0b9e814d.zip" scope="external">CommonFramework.zip</xref>.</p><p>Click<xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-2e2b4dbb-291f-428c-82bf-fe796b4f50f4.html" scope="peer"> browse StaticDLL</xref> to view the example code. </p><p>Click <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-bd05bfa4-e51c-4cf7-b327-646b0b9e814d.html" scope="peer">browse CommonFramework</xref>  to view additional files.</p> </section>
       
    20 <section id="GUID-98C5D73C-E983-4530-92E9-439E47B43162"><title>Build and Usage</title> <p>The example may be in the directory
       
    21 in which you installed the Symbian platform, or it may be in <filepath>src\common\developerlibrary\</filepath>.
       
    22 The example includes the project files needed for building: <filepath>bld.inf</filepath> and
       
    23 two <filepath>.mmp</filepath> files. </p> <p> <xref href="GUID-3100800B-B2F7-50EF-BD4C-3C345ECCB2A5.dita">The
       
    24 Symbian platform build process</xref> describes how to build Symbian programs.
       
    25 To run this example: </p> <ol id="GUID-C12016AA-4582-5812-BD1B-4D36A27679EB">
       
    26 <li id="GUID-9CC286FF-4935-5C53-A5D5-486A280E4437"><p>Build <filepath>CreateStaticDLL</filepath> project,
       
    27 which results in the following: </p> <p> <filepath>\epoc32\release\&lt;target&gt;\&lt;urel
       
    28 or                 udeb&gt;\CREATESTATICDLL.DLL</filepath>. </p> <p> <filepath>\epoc32\release\&lt;target&gt;\&lt;urel
       
    29 or                 udeb&gt;\CREATESTATICDLL.lib</filepath>. </p> <p>They are
       
    30 needed by the <filepath>UseStaticDLL</filepath> project. </p> </li>
       
    31 <li id="GUID-BE21E3AF-9D89-5CC3-915E-1688BCC49866"><p>Build <filepath>UseStaticDLL</filepath>,
       
    32 which results in: </p> <p> <filepath>\epoc32\release\&lt;target&gt;\&lt;urel
       
    33 or                 udeb&gt;\USESTATICDLL.EXE</filepath>. </p> <p>This project
       
    34 use the DLL created in the previous steps. </p> </li>
       
    35 <li id="GUID-E857288D-77D6-58E5-971A-7FFF8B95E843"><p>Run the executable <filepath>USESTATICDLL.EXE</filepath>. </p> <p>Executables
       
    36 for the <filepath>winscw</filepath> target can be run on your PC. Executables
       
    37 for ARM targets must be copied to a phone before being run. </p> </li>
       
    38 </ol> </section>
       
    39 </conbody></concept>