NS_InitEmbedding() is not a file - it's a function call which is invoked in MfcEmbed.cpp(or in any custom embedding app).
The function is already implemented for you and all you have to do is to invoke in your app - like mfcembed does. You link with that function by telling the linker to look in the "baseembed_s.lib" static lib - please see the makefile.win in the MfcEmbed dir on how that's done.
Chak
CORONA,FATIMA (HP-Boise,ex1) wrote:
[EMAIL PROTECTED]">I can't find the NS_InitEmbedding()file anywhere in my source code. I looked
under embedding/tests/mfcembed and embedding/ests/winEmbed and can't find
this file. So how do these files get invoked ?
Fatima
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 9:55 AM
To: CORONAFATIMA (HP-Boiseex1)
Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: Re: Rolling my own browser
NS_InitEmbedding() and NS_TermEmbedding() are just two of the required
functions which emb! eddors 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 totherest 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
