diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-6E4CAA18-635E-5476-8CE4-DCA69C05CC07.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-6E4CAA18-635E-5476-8CE4-DCA69C05CC07.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,50 @@ + + + + + +HybridApp: +Demonstrating P.I.P.S. Hybrid Applications +

This example shows how to develop P.I.P.S. hybrid applications. The example +uses both pure C and native Symbian C++ APIs.

+
Download

Click on the following link to download +the example: HybridApp.zip

Click: browse to view the example code.

+
Description

This example displays the memory information +of all available drives of the system. As P.I.P.S. APIs cannot be used to +access these drives, native Symbian C++ APIs are used. The RFs::Drive() and RFs::Volume() APIs +are used to access the drives and get their memory information.

It +displays the drive information by using the standard Input/Output functions +defined in P.I.P.S. libraries. The DescToChar() function +defined in the example converts the native Symbian descriptor strings to C +strings. As the drive name is stored in a descriptor, the example uses this +function to convert it to a C string.

+
Build

The following statements are present in all +the .mmp files of the example:

SYSTEMINCLUDE epoc32\include\stdapis +LIBRARY libc.lib +STATICLIBRARY libcrt0.lib

Note: You require these statements +because of the following reasons:

    +
  • The epoc32\include\stdapis directory +contains header files such as, stdio.h, unistd.h and +so on that are required to build an Open Environment application.

  • +
  • The libc.lib file +contains the definitions of all functions that are defined in the header files +associated with this example.

  • +
  • The libcrt0.lib file +provides the E32Main() function, which is the entry point +for the main() function of the example.

  • +

The Symbian +build process describes how to build this example.

For +the emulator, the example builds an executable file called hybridapp.exe in +the epoc32\release\winscw\<udeb or urel>\ directory.

+
+Hybrid Applications + +Build Process + +
\ No newline at end of file