Hi Suresh,
I am working with the Mozilla Browser code for during last week on Linux. I
have a query, it would be great if you provide few pointers to the solution
so that i can proceed.

Objective:
My objective is to write a simple C++ program which can access the standard
XPCOM objects provided by the browser like Cookie Manager, Password Manager
etc. I have looked at the source code and found a sample XPCOM component + a
sample C++ program nsTestSample. cpp(in mozilla/xpcom/sample/) I have build
it and it works fine.

Problem:
To begin with i have modified the nsTestSample.cpp itself to access
@mozila.org/cookiemanager;1.  The Instance creation and registration is
fine. But when i add the method  ->removeAll() i get a compilation error
"removeAll undeclared." I manually copied the idl files, header files and
libcookie.so into  the current directory (mozilla/xpcom/sample)...and am
using the same Makefile used for the xpcom/sample. I am not able to figure
our what the problem is....


I do agree copying all *.idls and *.so into current directory is not correct
approach, but i am able to understand, what needs to go where..idl
or..so..or *.h. Hence i took the approach of modifying the nsTestSample.cpp
itslef so that it can access a standard XPCOM
object.
Could you provide me with help/information on how a c++ xode needs to be
built, i am quite clear with the theory of which APIs to call, but build is
failing. I have searched a lot ion the mozilal site, any help from you could
help to move further....


Thanks a lot in advance,
Have a nice day
Anis






















_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to