regarding dlls

Login to reply to this topic.
Mon, 2003-08-18 11:49
Joined: 2003-06-10
Forum posts: 10
can anybody explain the concept of dll export and dll import .how they append to a function

RAVIKIRAN BASA


Mon, 2003-08-18 11:54
Joined: 2003-06-10
Forum posts: 10
regarding dlls
i eaxctly mean the concept of export_c and import_c

RAVIKIRAN BASA

Thu, 2003-09-04 09:51
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 1886
regarding dlls
IMPORT_C should be used in the header in front of each function you want to be available to clients of the DLL.

EXPORT_C should be used in the implementation of each of the functions identified above.

This gives:
Code:
class CMyDLLClass : public CBase
{
public:
   IMPORT_C void myVisibleFunction(); // Visible to clients of the DLL
   ...
private:
   void myPrivateFunction(); // Not visible to clients of the DLL
}

EXPORT_C void myVisibleFunction()
{
   // Do Something
}

void myPrivateFunction()
{
  // Do Something
}

You can also take a look at this .
Cheers,
Eric

Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

  • Login to reply to this topic.