S60 Open C
Examples for Open C Libraries

Examples for Open C Libraries

Table of Contents

Basic DLL
MMP File for Basic DLL
Source Code for Basic DLL

 


Basic DLL

This example illustrates a very simple DLL written in Open C and its usage from a client application using main() as the entry point. In addition, it illustrates how to make conversions between descriptors and char and wchar buffers. It provides a wrapper class hiding that it needed for conversions from the client application.

 


MMP File for Basic DLL

TARGET          	opencbasicdll.dll
TARGETTYPE      	dll
UID             	0x1000008d 0xA0001313
VENDORID        	0          
SOURCEPATH      .	.\src
SOURCE          	opencbasicdll.cpp 

// This is needed for including Open C headers
SYSTEMINCLUDE   \epoc32\include 
SYSTEMINCLUDE   \epoc32\include\stdapis
USERINCLUDE     ..\inc 

// Open C libc is required
LIBRARY         libc.lib 
 
// This would require changes in a real world DLL to work properly
// with platform security. In this example, the client application
// doesn't require any capabilities, so this will work perfectly.
CAPABILITY      NONE

 


Source Code for Basic DLL

Go to this location \nokia_plugin\openc\s60opencex\opencbasicdll to view the source code for this example.

NOTE: This code has been tested on Carbide.

Give feedback of this article


Back to top

Copyright ©2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user.