Read-only archive of the All About Symbian forum (2001–2013) · About this archive

accessing dll functions

1 replies · 2,412 views · Started 24 January 2007

Hello,
Could anyone help me regarding accessing dll functions with Symbian 9.1 ?
Here's my case:
-I cannot use class or any c++ statements since I have to work with .c file
-I am able to build a dll,with map file and no lib file (Do I need a corresponding .lib file? )
-I am able to load my dll
-next is I want to be able to access dll functions, in my dlltester
-here is a sample function in my .dll that I want to access, how can access/execute that in my exe?

EXPORT_C void func1(void)
{
printf("DLL PRINTF, END DLL\n"😉;
sleep(5);
}

jesmer wrote:Hello,
Could anyone help me regarding accessing dll functions with Symbian 9.1 ?
Here's my case:
-I cannot use class or any c++ statements since I have to work with .c file
-I am able to build a dll,with map file and no lib file (Do I need a corresponding .lib file? )
-I am able to load my dll
-next is I want to be able to access dll functions, in my dlltester
-here is a sample function in my .dll that I want to access, how can access/execute that in my exe?

EXPORT_C void func1(void)
{
printf("DLL PRINTF, END DLL\n"😉;
sleep(5);
}

A lib file will be generated automatically when the dll exports a function. If there is no lib file then you are missing a

IMPORT_C void func1(void)

statement in a header file. If this function has C linkage, you also need to declare the function with C linkage in the usual way.