×
Namespaces

Variants
Actions

Writing a Simple .DLL file

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: giridharn (28 May 2007)
Last edited: hamishwillee (26 Jul 2012)

MMP File

TARGET		Testing.dll
TARGETTYPE dll
UID 0x1000008d 0x10005BC8
 
 
SOURCE testing.cpp
 
USERINCLUDE ..\inc
 
SYSTEMINCLUDE \epoc32\include
LIBRARY euser.lib
LIBRARY estor.lib
 
EXPORTUNFROZEN

Header File

#ifndef __TESTING_H
#define __TESTING_H
 
#include <e32std.h>
#include <w32std.h>
 
class CTest: CBase
{
public:
IMPORT_C TInt value();
};
 
#endif //

CPP File

#include "Testing.h"
 
EXPORT_C TInt CTest::value()
{
return 3;
}
 
EXPORT_C TInt E32Dll(TDllReason)
{
return KErrNone;
}
This page was last modified on 26 July 2012, at 06:59.
32 page views in the last 30 days.