how to use gecko_sdk?

2008-05-08 Thread Brightman
a compile problem . the program can't find "GRE_GetGREPathWithProperties" in "libxpcomglue.a" c++ -g -o test -I ../mozilla/dist/include -DDEUBG -DXPCOM_GLUE -I../ mozilla/dist/sdk/include -L../mozilla/dist/bin -Wl,-rpath-link,../ mozilla/dist/bin/ -L../mozilla/dist/sdk/lib ./libxpcomglue.a - lem

Re: The big core in "NS_TermEmbedding"

2008-01-06 Thread Brightman
p; cleanup #ifndef HACK_AROUND_NONREENTRANT_INITXPCOM nsresult rv = NS_ShutdownXPCOM(sServiceManager); NS_ENSURE_SUCCESS(rv, rv); #endif return NS_OK; } On Jan 5, 2:33 pm, Brightman <[EMAIL PROTECTED]> wrote: > when the browser loaded url "http://13602849046.bokee.com/&qu

The big core in "NS_TermEmbedding"

2008-01-04 Thread Brightman
when the browser loaded url "http://13602849046.bokee.com/"; and exit, it core dump #0 0x002a95bf37e2 in nsDiskCacheRecord::HashNumber (this=0x400) at nsDiskCacheMap.h:139 139 PRUint32 HashNumber() const { return mHashNumber; } (gdb) bt #0 0x002a95bf37e2 in nsD

a querstion in mozilla/parser/htmlparser/robot/test/RobotMain.cpp

2007-12-27 Thread Brightman
in the file of "mozilla/parser/htmlparser/robot/test/RobotMain.cpp", the object of "docShell" is null,how to create this object? as docShell is null,webNav can't load url. ___ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozil

Re: how to disable image(or css) support in GtkMozEmbed?

2007-10-17 Thread Brightman
On Oct 17, 2:46 am, "tonikitoo (Antonio Gomes)" <[EMAIL PROTECTED]> wrote: > you can take a look at permissions.default.image preference > > > i don't want GtkMozEmbed to display imags. > > -- > --Antonio Gomes where is permissions.default.image preference? or which api? _

how to disable image(or css) support in GtkMozEmbed?

2007-10-16 Thread Brightman
i don't want GtkMozEmbed to display imags. ___ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-embedding

Re: how to use "GetElementsByTagName" function to get urls from dom tree?

2007-09-28 Thread Brightman
On Sep 26, 12:00 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Brightman wrote: > > mNavigation->LoadURI(mURI.get(),// URI > > I thought it was something like that. LoadURI does the load asynchronously. > > > //get curre

Re: how to use "GetElementsByTagName" function to get urls from dom tree?

2007-09-25 Thread Brightman
On Sep 24, 9:49 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote: > Brightman wrote: > > thank u very much! > > "a" or "A", the length of nodelist is 0 > > > but GetElementsByTagName(NS_LITERAL_STRING("body"),), > > nodeli

Re: how to use "GetElementsByTagName" function to get urls from dom tree?

2007-09-24 Thread Brightman
Nickolay Ponomarev ??: > On 9/24/07, Brightman <[EMAIL PROTECTED]> wrote: > >> my code as follow,but it does't work :( >> >> > "Doesn't work" meaning what exactly? > > Did you check that "a" elements are lowercase in

how to use "GetElementsByTagName" function to get urls from dom tree?

2007-09-24 Thread Brightman
my code as follow,but it does't work :( nsCOMPtr domDoc; nsresult res = mNavigation->GetDocument(getter_AddRefs(domDoc)); nsCOMPtr nodelist; res = domDoc- >GetElementsByTagName(NS_LITERAL_STRING("a"),getter_AddRefs(nodelist)); PRUint32 index; PRUint32 length; res = nodelist->GetLength(&length); p

th simple example use gecko ,but it can't work

2007-09-19 Thread Brightman
1; } char *lastSlash = strrchr(xpcomPath, '/'); if (lastSlash) *lastSlash = '\0'; setenv("MOZILLA_FIVE_HOME", xpcomPath, 0); char *home_path; char *full_path; home_path = getenv("HOME"); if (!home_path) { fp

Re: NS_NewLocalFile failed

2007-09-18 Thread Brightman
On Sep 18, 1:23 am, Christian Biesinger <[EMAIL PROTECTED]> wrote: > Brightman wrote: > > [EMAIL PROTECTED]:~/mozilla/embedding/examples$ ./test > > hello world > > Couldn't set greDir.(rv = 0xc1f30001) > > How are you compiling/linking the code? Ar

Re: NS_NewLocalFile failed

2007-09-13 Thread Brightman
On Sep 13, 10:35 pm, Benjamin Smedberg <[EMAIL PROTECTED]> wrote: > Brightman wrote: > > char* grePath ="/home/brightman/mozilla/dist/bin"; rv = > > NS_NewLocalFile(nsEmbedString((const > > PRUnichar*)grePath),PR_TRUE,getter_AddRefs(greDir)); > > You are

NS_NewLocalFile failed

2007-09-13 Thread Brightman
quot; int main(int argc,char **argv) { printf("hello world\n"); nsresult rv; nsCOMPtr greDir = nsnull; char* grePath ="/home/brightman/mozilla/dist/bin"; rv = NS_NewLocalFile(nsEmbedString((const PRUnichar*)grePath),PR_TRUE,getter_AddRefs(greDir)); if (NS_FAILED

link failed in gtkMozEmbed

2007-09-13 Thread Brightman
[EMAIL PROTECTED]:~/mozilla/embedding/examples$ make /usr/bin/make export make[1]: Entering directory `/backup/brightman/mozilla/embedding/examples' make[1]: Leaving directory `/backup/brightman/mozilla/embedding/examples' /usr/bin/make libs make[1]: Entering directory `/backup/brightm

Re: How to embed Gecko in a C++ app?

2007-09-05 Thread Brightman
are you resolve this problem? i want to use gecko to parse url from html builded by javascript, could you send me your source code ?([EMAIL PROTECTED]) thanks On Aug 17, 7:19 pm, [EMAIL PROTECTED] wrote: > I probably put it wrong. I need to crawl data that's behind forms, and > what I've been doin