Examples for Open C Libraries |
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.
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