Nokia N97 SDK
Example Applications Guide

globalvarex.c

00001 /** @file passwd.c
00002  * Contained the implementation to test auth library
00003  */
00004 /*
00005 * ==============================================================================
00006 *  Name        : passwd.c
00007 *  Part of     : Open C/Example code
00008 *  Description : This is used to test auth library.
00009 *  Version     : 1.0
00010 *
00011 *  Copyright (c) 2007 Nokia Corporation.
00012 *  This material, including documentation and any related
00013 *  computer programs, is protected by copyright controlled by
00014 *  Nokia Corporation.
00015 * ==============================================================================
00016 */
00017 
00018 // system include
00019 #include <unistd.h>
00020 #include <stdio.h>
00021 #include <stdlib.h>
00022 #include <errno.h>
00023 //#include <staticlibinit_gcce.h>
00024 #include "wsddll.h"
00025 
00026 /**
00027 * Debug message
00028 * @param aMessagePtr pointer to the message
00029 * @param aErrNo
00030 */
00031 
00032 /**
00033 * application entry point
00034 */
00035 
00036 int main(void)
00037 {
00038         char str[20];
00039 
00040         printf ("DLL global int value : %d\n",GetDllInt());
00041         GetDllString(str);
00042         printf ("DLL global String value : %s\n",str);
00043 
00044         SetDllInt(1008);
00045         SetDllString("HelloWorld");
00046 
00047         printf ("DLL global int value : %d\n",GetDllInt());
00048         GetDllString(str);
00049         printf ("DLL global String value : %s\n",str);
00050 
00051     printf("Press any key to exit.\n");
00052     getchar();
00053     return 0;
00054 }
00055 
00056 //End of file

© Nokia 2009

Back to top