NS_InitEmbedding() and NS_TermEmbedding() are just two of the required functions which
embeddors of Gecko need to call in their apps. Of course, you need to call on the
(many) other Gecko interfaces if you want do anything useful, like creating a window
which can render HTML content, loading a URL into it etc.
1. Please compile and run mfcembed or winembed
cd embedding/tests/mfcembed
nmake -f makefile.win
cd embedding/tests/winembed
nmake -f makefile.win
2. Run one of these two programs
cd $(DIST)/bin
mfcembed
This should give you a feel for what an embedding app is all about.
Now, please search for NS_InitEmbedding() in embedding/tests/mfcembed or winembed to
see where they are being invoked. Also you should be able to step thru' the code in a
debugger to see how these and other Gecko interfaces are invoked.
Chak
CORONA,FATIMA (HP-Boise,ex1) wrote:
>I am looking at the page
>http://www.mozilla.org/projects/embedding/howto/initializations.html
>and from what I understood. The two functions you give:
>
>nsresult NS_InitEmbedding(const char *aPath);
>nsresult NS_TermEmbedding();
>do I just place them on my newly created package, so it can be linked to the
>rest of mozilla ?
>any special formatting ?
>Will this do the rest for me? or do I still need xtra code in order to take
>care of XPCOM and NS InitXPCOM?
>
>Thanks,
>Fatima
>