How To Freeze New Exports From Dll

in

First Use EXPORTUNFROZEN in Project mmp file Initiallly like this for example [1]:

// Make This Code Commented
// as we will need it at a later stage
/*#if defined(WINS)
   deffile .\MYDLLWINS.def
#else if defined(ARM)
   deffile .\MYDLLARM.def
#endif*/

EXPORTUNFROZEN

After building whole project just use abld freeze command (from the DOS command line) to export all the functions exported by your DLL and then search the projectname.def files in \epoc32\release\ folder. If Present then the function have been successfully exported in the DEF file.

Now uncomment the deffile primitives in your MMP file like this:

// This is the code was commented before. We now use
// it to tell the linker to use the def file
#if defined(WINS)
   deffile .\MYDLLWINS.def
#else if defined(ARM)
   deffile .\MYDLLARM.def
#endif

// This tag is not needed anymore
//EXPORTUNFROZEN

Once again re-build the whole project and you will get new dll lib and def file with new exports. Now you can search <yourprojectname><platform>.def file in your working project folder.

All The Best, Bhuvnesh Joshi

[1] MYDLL is the name of project i have used you can use your own project (dll) name


How To Freeze a DLL after modifying APIs

how to freeze the .dll after we modify anything regarding APIs that we export. for Eg: Ccalculate(original) TInt Add(TInt a,TInt b); ; freezed everthing fine now i want to modify this like the following Ccalculate(original) void Add(TInt a,TInt b); ;

now how should i do freezing i mean steps that i need to follow.