Compile errors again, symbols like XRE_InitEmbeddingType are not being
found. Docs on mozilla website say that they no longer support
winEmbed or mfcEmbed; not sure if they'll work now.

What I'm trying to do is to write a bare-bones crawler in C++, I don't
need any GUI, or any browser window. I just want a console app (.exe)
that will take as argument a URL and save its content to a file on the
disk. Just that. Later, data-extractor will pick it up and do the
parsing.

I already have something like this working in Java, without Gecko or
anything. Is there no simple way of doing it in C++/Gecko?

On Aug 17, 2:28 pm, [EMAIL PROTECTED] wrote:
> Thanks for being so prompt, will try it out now.
>
> On Aug 17, 12:21 pm, "Arnaud Grandville" <klephte2003 at yahoo fr>
> wrote:
>
> > <[EMAIL PROTECTED]> a écrit dans le message de news:
> > [EMAIL PROTECTED]
> > On Aug 16, 12:18 pm, "Arnaud" <klephte2003 at yahoo fr> wrote:
>
> > > If you expect to use Gecko as a crawler to get the DOM view of the DHTML
> > > pages you will download, that's certainly the best way.  A very usefull
> > > example is located in [C:]\mozilla\embedding\tests\winEmbed, but the
> > > Visual
> > > studio Project winembed.dsp seems to be out of order, so I rewrite one,
> > > you
> > > could get it athttp://www.grandville.net/download/winEmbed.vcproj
>
> > > An other way, for 'statics' HTML (whitout local javascript execution), I
> > > wrote an efficient crawler based on two other greats tools : CUrl and
> > > LibXML.
>
> > > Greetings From France,
> > > Arnaud
>
> > > <[EMAIL PROTECTED]> a écrit dans le message de news:
> > > [EMAIL PROTECTED]
>
> > > > Hi all,
>
> > > > I've been trying to embed Gecko in a C++ crawler that I'm writing, and
> > > > all in vain. Docs online are either outdated or confusing, or maybe
> > > > I'm just not able to get it. I read somewhere that to embed Gecko we
> > > > no more require to checkout the entire Mozilla source tree, nor do we
> > > > need to download the gecko-sdk. Downloading and installing the latest
> > > > xulrunner builds has got all the necessary files for writing
> > > > components in XPCOM. So as of now, I have xulrunner-1.8.0.1 on my
> > > > machine, and nothing else. I use Visual Studio 2003 as my IDE. I have
> > > > no clue as to how to get started. A simple 'hello-world' app, or just
> > > > downloading one single webpage from the Internet, or something like
> > > > that.
>
> > > > Could someone please help me out here? Any help will be greatly
> > > > appreciated.
>
> > > > Thanks,
> > > > John.
>
> > Thanks Arnaud. When I try to build that vcproj, I get fatal errors
> > saying that some headers are missing, like nsCWebBrowser.h,
> > nsXULAppAPI.h, etc. I don't have these files on my system. I also see
> > that my gecko-sdk has got only one include folder in its root
> > directory, and that's it. Is my build-setup bad? Latest gecko-sdks
> > have got only four folders in its root - bin, lib, idl and include.
> > What am I missing?
>
> > have a look 
> > athttp://developer.mozilla.org/en/docs/Windows_Build_Prerequisites
> > You must
> > - install MozillaBuild 1.1 package into c:\Mozilla-build and extract
> > firefox-2.0.0.6-source.tar.bz2 into c:\Mozilla
> > - launch C:\mozilla-build\start-msvcX.bat
> > next, From the MINGW32 Shell :
> > - cd /c/mozilla
> > - ./configure --enable-application=browser
> > - make


_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to