7 Nokia Corporation - initial contribution. |
7 Nokia Corporation - initial contribution. |
8 Contributors: |
8 Contributors: |
9 --> |
9 --> |
10 <!DOCTYPE concept |
10 <!DOCTYPE concept |
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
12 <concept id="GUID-6E4CAA18-635E-5476-8CE4-DCA69C05CC07" xml:lang="en"><title>HybridApp: |
12 <concept id="GUID-6E4CAA18-635E-5476-8CE4-DCA69C05CC07" xml:lang="en"><title>HybridApp: Demonstrating P.I.P.S. Hybrid Applications</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
13 Demonstrating P.I.P.S. Hybrid Applications</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
13 <p>This example shows how to develop P.I.P.S. hybrid applications. |
14 <p>This example shows how to develop P.I.P.S. hybrid applications. The example |
14 The example uses both pure C and native Symbian C++ APIs. </p> |
15 uses both pure C and native Symbian C++ APIs. </p> |
15 <section id="GUID-86E4C6CB-3C8C-43D5-A536-706209E6AE95"><title>Download</title> <p>Click on the following link to download the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-5a0c76f0-30fe-4695-af85-4dbb6b05e42e.zip" scope="external">HybridApp.zip</xref></p><p>Click: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-5a0c76f0-30fe-4695-af85-4dbb6b05e42e.html" scope="peer">browse</xref> to view the example code. </p> </section> |
16 <section id="GUID-86E4C6CB-3C8C-43D5-A536-706209E6AE95"><title>Download</title> <p>Click on the following link to download |
16 <section id="GUID-EDB901A4-0601-442C-8B2D-1FAF7822CFD6"><title>Description</title> <p>This example displays the memory information of all available |
17 the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-5a0c76f0-30fe-4695-af85-4dbb6b05e42e.zip" scope="external">HybridApp.zip</xref></p><p>Click: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-5a0c76f0-30fe-4695-af85-4dbb6b05e42e.html" scope="peer">browse</xref> to view the example code. </p> </section> |
17 drives of the system. As P.I.P.S. APIs cannot be used to access these |
18 <section id="GUID-EDB901A4-0601-442C-8B2D-1FAF7822CFD6"><title>Description</title> <p>This example displays the memory information |
18 drives, native Symbian C++ APIs are used. The <codeph>RFs::Drive()</codeph> and <codeph>RFs::Volume()</codeph> APIs are used to access the drives |
19 of all available drives of the system. As P.I.P.S. APIs cannot be used to |
19 and get their memory information. </p> <p>It displays the drive information |
20 access these drives, native Symbian C++ APIs are used. The <codeph>RFs::Drive()</codeph> and <codeph>RFs::Volume()</codeph> APIs |
20 by using the standard Input/Output functions defined in P.I.P.S. libraries. |
21 are used to access the drives and get their memory information. </p> <p>It |
21 The <codeph>DescToChar()</codeph> function defined in the example |
22 displays the drive information by using the standard Input/Output functions |
22 converts the native Symbian descriptor strings to C strings. As the |
23 defined in P.I.P.S. libraries. The <codeph>DescToChar()</codeph> function |
23 drive name is stored in a descriptor, the example uses this function |
24 defined in the example converts the native Symbian descriptor strings to C |
24 to convert it to a C string. </p> </section> |
25 strings. As the drive name is stored in a descriptor, the example uses this |
25 <section id="GUID-3729BF6B-2B80-46FC-B5D6-AD59BB378236"><title>Build</title> <p>The following statements are present in all the <filepath>.mmp</filepath> files of the example: </p> <codeblock id="GUID-4B6DD4ED-6044-5294-A2A1-91CFCD3FFE31" xml:space="preserve">SYSTEMINCLUDE epoc32\include\stdapis |
26 function to convert it to a C string. </p> </section> |
|
27 <section id="GUID-3729BF6B-2B80-46FC-B5D6-AD59BB378236"><title>Build</title> <p>The following statements are present in all |
|
28 the <filepath>.mmp</filepath> files of the example: </p> <codeblock id="GUID-4B6DD4ED-6044-5294-A2A1-91CFCD3FFE31" xml:space="preserve">SYSTEMINCLUDE epoc32\include\stdapis |
|
29 LIBRARY libc.lib |
26 LIBRARY libc.lib |
30 STATICLIBRARY libcrt0.lib</codeblock> <p> <b>Note:</b> You require these statements |
27 STATICLIBRARY libcrt0.lib</codeblock> <p> <b>Note:</b> You require |
31 because of the following reasons: </p> <ul> |
28 these statements because of the following reasons: </p> <ul> |
32 <li id="GUID-90620295-032C-5057-9D1D-04064322C0A6"><p>The <filepath>epoc32\include\stdapis</filepath> directory |
29 <li id="GUID-90620295-032C-5057-9D1D-04064322C0A6"><p>The <filepath>epoc32\include\stdapis</filepath> directory contains header files |
33 contains header files such as, <filepath>stdio.h</filepath>, <filepath>unistd.h</filepath> and |
30 such as, <filepath>stdio.h</filepath>, <filepath>unistd.h</filepath> and so on that are required to build an Open Environment application. </p> </li> |
34 so on that are required to build an Open Environment application. </p> </li> |
31 <li id="GUID-3CC12EEF-4472-5782-A1F0-81B576B99249"><p>The <filepath>libc.lib</filepath> file contains the definitions of all functions |
35 <li id="GUID-3CC12EEF-4472-5782-A1F0-81B576B99249"><p>The <filepath>libc.lib</filepath> file |
32 that are defined in the header files associated with this example. </p> </li> |
36 contains the definitions of all functions that are defined in the header files |
33 <li id="GUID-CADEFC9F-45F6-5E13-8336-6EC6457A102E"><p>The <filepath>libcrt0.lib</filepath> file provides the <codeph>E32Main()</codeph> function, which is the entry point for the <codeph>main()</codeph> function of the example. </p> </li> |
37 associated with this example. </p> </li> |
34 </ul> <p> <xref href="GUID-3100800B-B2F7-50EF-BD4C-3C345ECCB2A5.dita">The |
38 <li id="GUID-CADEFC9F-45F6-5E13-8336-6EC6457A102E"><p>The <filepath>libcrt0.lib</filepath> file |
35 Symbian build process</xref> describes how to build this example. </p> <p>For the emulator, the example builds an executable |
39 provides the <codeph>E32Main()</codeph> function, which is the entry point |
36 file called <filepath>hybridapp.exe</filepath> in the <filepath>epoc32\release\winscw\<udeb |
40 for the <codeph>main()</codeph> function of the example. </p> </li> |
37 or urel>\</filepath> directory. </p> </section> |
41 </ul> <p> <xref href="GUID-3100800B-B2F7-50EF-BD4C-3C345ECCB2A5.dita">The Symbian |
|
42 build process</xref> describes how to build this example. </p> <p>For |
|
43 the emulator, the example builds an executable file called <filepath>hybridapp.exe</filepath> in |
|
44 the <filepath>epoc32\release\winscw\<udeb or urel>\</filepath> directory. </p> </section> |
|
45 </conbody><related-links> |
38 </conbody><related-links> |
46 <link href="GUID-38BE7105-309E-5372-98EE-BCA0ADD0ACBA.dita"><linktext>Hybrid Applications</linktext> |
39 <link href="GUID-38BE7105-309E-5372-98EE-BCA0ADD0ACBA.dita"><linktext>Hybrid |
47 </link> |
40 Applications</linktext></link> |
48 <link href="GUID-79100974-CAE1-5451-9ED7-E06C9B27131B.dita"><linktext>Build Process</linktext> |
41 <link href="GUID-79100974-CAE1-5451-9ED7-E06C9B27131B.dita"><linktext>Build |
49 </link> |
42 Process</linktext></link> |
50 </related-links></concept> |
43 </related-links></concept> |