Symbian3/SDK/Source/GUID-22F4D9EA-9912-466E-B729-7706BC17BDA1.dita
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Thu, 21 Jan 2010 18:18:20 +0000
changeset 0 89d6a7a84779
child 13 48780e181b38
permissions -rw-r--r--
Initial contribution of Documentation_content according to Feature bug 1266 bug 1268 bug 1269 bug 1270 bug 1372 bug 1374 bug 1375 bug 1379 bug 1380 bug 1381 bug 1382 bug 1383 bug 1385

<?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 task
  PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="GUID-22F4D9EA-9912-466E-B729-7706BC17BDA1" xml:lang="en"><title>Write
a converter DLL project file</title><prolog><metadata><keywords/></metadata></prolog><taskbody>
<context>       <p>Project file defines the location of the source files that
required are to build a plug-in.</p><p>To write a converter DLL project file,
specify the following in the <codeph>.mmp</codeph> file:</p><ul>
<li><p>The extension of the target file as <codeph>.dll</codeph>.</p></li>
<li><p>The <codeph>TARGETTYPE</codeph> as <codeph>plugin</codeph>.</p></li>
<li><p>The second UID as <codeph>0x10009d8d</codeph>. This value identifies
the DLL as an ECom plug-in. The third UID (<codeph>0xE800009B</codeph> in
this example) must be unique and properly allocated. See the <xref href="https://www.symbiansigned.com/app/page.dita">Symbian
Signed</xref>Symbian Signed web site for information on how to allocate UIDs.</p></li>
<li><p>The library section must include <codeph>conarc.lib</codeph>. </p></li>
</ul><p>The following is an example of an <codeph>.mmp</codeph> file that
builds a converter DLL called <codeph>EXAMPLECONV.dll</codeph>:</p><codeblock xml:space="preserve">// ExampleConv.MMP
target      exampleconv.dll
targettype  plugin
UID     0x10009d8d 0xE800009B
VENDORID    0x70000001
CAPABILITY  All -Tcb
sourcepath  .
start resource E800009B.rss
target exampleconv.rsc
end
start resource E80000AC.rss
targetpath /resource/convert
end
userinclude .
systeminclude   . /epoc32/include
systeminclude  /epoc32/include/ecom
source      ExampleConv.CPP
library     euser.lib
library     conarc.lib estor.lib
</codeblock></context>
</taskbody></task>