On 6/14/06, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
Sandesh Sethia wrote: > 1. Ask Service Manager (by contractID) to give web browser component No. Web browsers are NOT services. If you're an embedding app, you've created a web browser and embedded it in your UI, right? If not, what _have_ you done?
I do not have any UI coz, the requirement is that a C++ program receives a URL from the command prompt and the program loads the page in a browser. So there is no UI involved. So, I will have to myself instantiate a browser window and load the page in it. I would require web browser component for this purpose....right ?
3. Invoke webbrowser interface method adWebBrowserListener (not quite sure > abt this method !!) This is not required, actually. It's just there if you want to get some sorts of notifications.
This wont be required then I guess .....
4. Invoke webnavigation loadURI() method to load the page.... Right. > I get error: > > /tmp/cclKCPBZ.o(.gnu.linkonce.t._ZN8nsCOMPtrI17nsIServiceManagerED1Ev+0xa): > In function `nsCOMPtr<nsIServiceManager>::~nsCOMPtr()': > : undefined reference to `nsCOMPtr_base::~nsCOMPtr_base()' > collect2: ld returned 1 exit status This part I'm sadly not as familiar with... Benjamin might help, maybe?
About this error I found a article by Scott Collins which states that nsCOMPtr class behaves abruptly when there is a conflict between the debug mode of the program that uses nsCOMPtr and the debug mode of the application/other libraries using it.......so I m working on gettin it solved.... it can be found at : https://bugzilla.mozilla.org/show_bug.cgi?id=26323 Thanks a ton Borris !! Sandesh _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
