PDA

View Full Version : A question about IModule?


arthurGong
07-25-2003, 01:06 AM
In the function followed
"int AEEClsCreateInstance(AEECLSID ClsId,IShell * pIShell,IModule * po,void ** ppObj)", I don't know the function and the meaning of the IModule, why it should exists and who and generate the IModule interface pointer.

I use one module to generated an instance of a extension interface designed by myself. I think they should have the same IModile interface but they are different. Who can tell me the reason?

kurquhar
07-25-2003, 02:26 PM
BREW creates the IModule pointer when it loads the module file (*.mod on the device, or *.dll on the emulator). If you have two applications (or extensions) in the same module file, then the IModule pointer will be the same. If you have two module files, then the IModule pointers will be different.

Applications use the IModule pointer as an argument to AEEApplet_New, but extensions can safely ignore it.