|
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-30DBE93F-1255-533F-9B02-4E19E248D065" xml:lang="en"><title>GUIApp: |
|
13 GUI Application with C Engine</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <section><title>Download</title> <p>Click on the following link to download |
|
15 the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-325cf83e-0845-463d-852a-b5b1a7b77792.zip" scope="external">GUIApp.zip</xref></p><p>Click: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-325cf83e-0845-463d-852a-b5b1a7b77792.html" scope="peer">browse</xref> to view the example code. </p> </section> |
|
16 <section><title>Description</title> <p> <filepath>GUIApp</filepath> is an |
|
17 example of an GUI application whose engine is written in C. </p> <p>The engine |
|
18 is a DLL, produced by project <filepath>GUIAppEng.mmp</filepath>, was taken |
|
19 from the FreeBSD <codeph>cksum</codeph> (checksum) utility. The only code |
|
20 in the project which was not written in C is the following function, defined |
|
21 in file <filepath>GUIAppEng.cpp</filepath>: </p> <codeblock id="GUID-A1A7B8D7-9261-5713-81B9-BA3BDD6A0E36" xml:space="preserve">EXPORT_C TInt E32Dll(TDllReason)</codeblock> <p>This fulfils the requirement that all DLLs need an entry point called <codeph>E32Dll()</codeph>. </p> </section> |
|
22 <section><title>Usage</title> <p>The program is operated using the following |
|
23 commands on the <systemoutput>File</systemoutput> menu: </p> <ul> |
|
24 <li id="GUID-05CD4465-FCE0-5D74-BA49-037116D0D61C"><p> <systemoutput>Calculate |
|
25 Checksum...</systemoutput> brings up a file selection dialog. Select a file |
|
26 and the program will calculate and show the file's checksum. </p> </li> |
|
27 <li id="GUID-ABB1C24C-F234-5295-B782-525A49999CE0"><p> <systemoutput>View |
|
28 Checksums...</systemoutput> shows a list of all the files which have been |
|
29 selected, and their checksums. </p> </li> |
|
30 </ul> </section> |
|
31 </conbody></concept> |