You may want to look at some of the embedding examples in the tree located at mozilla/embedding/tests/ specifically mfcEmbed. winEmbed is obsolete and is not known to work.
Rahul Torvi wrote: > hi, > I am new to mozilla but would like to use its embedable feature and if > possible use the cross platform > UI support to create application ,for loading the html/xml files and then > flipping through the files > > Things I have tried : > > 1. I have downloaded the Mozilla 0.9.5 and was successful in compliing it. > > 2. I went throug the available documents to find out a way to embedd > Mozillainto my apllication. > Here i lost the plot with regard to the approach to be taken.I am > listing the pointers which I could gather > > A). The reference given by Doug Turner - Roll Your Own Browser > Doug Turner >> > One of the requirements of building a SDK, > is the ability to identify and package up required files. Like that isn't > totally obvious, nonetheless > it has to be done. Here is that effort. > > I have created a directory under embedding > called config. Contained within this directory are a couple makefiles these: > > basebrowser-unix > basebrowser-win > The xpinstall packager follows the same > format. However in our case, we only have one named xpi package. > > After a build is done, you can change > directory into mozilla/embedding/config, and do a make. This will produce a > directory in |DIST| named > |Embed|. It should include all of the base > support that you need to get a web browser started up. Included is the > sample test application > (gtkEmbed or winEmbed). > > Results >> > I used the nmake utility with basebrowser-win > > ***** form the command prompt******** > E:\MozillaSourceCode\mozilla\embedding\config>nmake > /f basebrowser-win > > Microsoft (R) Program Maintenance Utility Version > 6.00.8168.0 > Copyright (C) Microsoft Corp 1988-1998. All rights > reserved. > > basebrowser-win(1) : fatal error U1033: syntax error : > ';' unexpected > Stop. > ************************************** > > I refered to some other make file and converted the > semicolons appearing at the beginning of each line into '#' > Then I again ran the make utility > > ***********from the command prompt*********** > E:\MozillaSourceCode\mozilla\embedding\config>nmake /f > basebrowser-win > > Microsoft (R) Program Maintenance Utility Version > 6.00.8168.0 > Copyright (C) Microsoft Corp 1988-1998. All rights reserved. > > basebrowser-win(3) : fatal error U1035: syntax error : > expected ':' or '=' separator > Stop. > ********************************************************** > > B) After failing in the first attempt i turned my attention to the > MFCEMBEDD application. > Initially I could not gett it started as it gave me an Invalid > .dsp file error > > After going through the news group archive I got following > pointer, > > **** posting from Adam Lock to this newsgroup a while ago to build > winembed from > within the VC++ IDE. > I followed the steps suggested and on compiling got the > following error message. > > Result : > E:\MozillaSourceCode\mozilla\dist\include\nspr\..\..\../config/config.mak(35 > 9) : fatal error U1052: file '..\..\../config/WIN' not found > Stop. > Error executing nmake. > > ****************************************************************** > > ??? Could any one please suggest where i have made a mistake ? > > C) I have tried Mozilla Active X Control. > The ActiveX Control works with > the Navigate function but the funtions for toolbars, status bars etc are > not making any changes in the borwser control. > ??? Please point any change in methods to follow while using the > Active X.And if possible how to enhance it. > > > > Things I have need : > > 1. Some clarification regarding the simplest method of embedding > Mozilla in a application. > The mfcembedd application looks complex and was difficult to > understand. > > 2. Difference between Gecko API and WebShell API if any? and also the > way to use them. > Would be greatful is the steps are listed. > 3. Most of the Link for Samples by Heikki Tovinen seemed to be removed. > Please point to the samples like Embedding NGLayout programmatically > > I know the mail is quiet exhaustive. Iam sorry for that. You is i am > desparate. > I have been trying for past two days to get a simple browser embedded > application runnning. > Please do give attention to the problem and guide me. > > > Rahul Torvi > > >
