Symbian3/SDK/Source/GUID-176FD8C9-B4A9-5B50-B683-AB5DA7D5D6F4.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-176FD8C9-B4A9-5B50-B683-AB5DA7D5D6F4" xml:lang="en"><title>CreateStaticDLL and UseStaticDLL: using a statically linked
DLL</title><prolog><metadata><keywords/></metadata></prolog><conbody>
<section id="GUID-A88465CB-D776-49CD-AA0C-1BAD59D340B6"><title>Description</title> <p>The example shows how a class implemented in a statically linked
DLL is used. The DLL is built by <filepath>CreateStaticDLL</filepath> and is used by <filepath>UseStaticDLL</filepath>. </p> </section>
<section id="GUID-D201398C-0D5C-4DA5-BEE6-A85BFDDD16BE"><title>Download</title> <p>Click on the following link 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 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>
<section id="GUID-98C5D73C-E983-4530-92E9-439E47B43162"><title>Build
and Usage</title> <p>The example may be in the directory in which
you installed the Symbian platform, or it may be in <filepath>src\common\developerlibrary\</filepath>. The example includes the project files needed for building: <filepath>bld.inf</filepath> and two <filepath>.mmp</filepath> files. </p> <p> The Symbian platform build process describes how to build Symbian
programs. To run this example: </p> <ol id="GUID-C12016AA-4582-5812-BD1B-4D36A27679EB">
<li id="GUID-9CC286FF-4935-5C53-A5D5-486A280E4437"><p>Build <filepath>CreateStaticDLL</filepath> project, which results in the following: </p> <p> <filepath>\epoc32\release\&lt;target&gt;\&lt;urel or          
      udeb&gt;\CREATESTATICDLL.DLL</filepath>. </p> <p> <filepath>\epoc32\release\&lt;target&gt;\&lt;urel
or                 udeb&gt;\CREATESTATICDLL.lib</filepath>. </p> <p>They
are needed by the <filepath>UseStaticDLL</filepath> project. </p> </li>
<li id="GUID-BE21E3AF-9D89-5CC3-915E-1688BCC49866"><p>Build <filepath>UseStaticDLL</filepath>, which results in: </p> <p> <filepath>\epoc32\release\&lt;target&gt;\&lt;urel
or                 udeb&gt;\USESTATICDLL.EXE</filepath>. </p> <p>This
project use the DLL created in the previous steps. </p> </li>
<li id="GUID-E857288D-77D6-58E5-971A-7FFF8B95E843"><p>Run the executable <filepath>USESTATICDLL.EXE</filepath>. </p> <p>Executables for the <filepath>winscw</filepath> target can be run on your PC. Executables for ARM
targets must be copied to a phone before being run. </p> </li>
</ol> </section>
</conbody></concept>