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 }
Forum posts: 10
RAVIKIRAN BASA
Forum posts: 1886
EXPORT_C should be used in the implementation of each of the functions identified above.
This gives:
{
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