Re: Change location of pluginreg.dat and registry.dat

2005-12-01 Thread Jason King
You need to implement  nsIDirectoryServiceProvider class and pass it in when you call InitEmbedding().  MfcEmbed does this, so you can use it as an example.JOn Dec 1, 2005, at 12:44 PM, Aleksandar Vasilev wrote:How do I change tle location of  pluginreg.dat and registry.dat, so that the embedding a

Change location of pluginreg.dat and registry.dat

2005-12-01 Thread Aleksandar Vasilev
How do I change tle location of pluginreg.dat and registry.dat, so that the embedding app uses its own private instances of these files? ___ mozilla-embedding mailing list mozilla-embedding@mozilla.org http://mail.mozilla.org/listinfo/mozilla-embeddin

Re: What's wrong with this small code - getting the DOM

2005-12-01 Thread Vijay
The process crashes on the last line nsresult nres = mEndParent->GetChildNodes(getter_AddRefs(children)); I can see in my vstudio debugger that I am getting an object with this structure: nsIDOMDocument nsISupports __vptr (**some expression which can't be evaluated) (**some expr

Re: What's wrong with this small code - getting the DOM

2005-12-01 Thread Boris Zbarsky
Vijay wrote: Here is the GetDOM function implementation as well... NS_IMETHODIMP CBrowserImpl::GetDOM(nsIDOMDocument* doc) { nsCOMPtr window; nsCOMPtr ndoc = (nsCOMPtr)doc; Er... what? That doesn't look to me like it should do anything sane at all. In particular, after this

Re: Embedded browser...having issues with "modal" popups and launching files from Download Manager

2005-12-01 Thread Niky Williams
Niky Williams wrote: Niky Williams wrote: Window 2000 using Visual Studio 2003 and C++ Let me see if I can explain this. I've got a pretty basic skeleton embedded browser and it seems to work okay browsing to various pages. I next tried to install the Macromedia Flash plugin. When I click o

Re: Embedded browser...having issues with "modal" popups and launching files from Download Manager

2005-12-01 Thread Niky Williams
Niky Williams wrote: Window 2000 using Visual Studio 2003 and C++ Let me see if I can explain this. I've got a pretty basic skeleton embedded browser and it seems to work okay browsing to various pages. I next tried to install the Macromedia Flash plugin. When I click on the file to download

Re: What's wrong with this small code - getting the DOM

2005-12-01 Thread Niky Williams
Vijay wrote: Hi All, In the original code of mfcembed, I have changed this method - void CMfcEmbedApp::OnNewBrowser() { CBrowserFrame *pBrowserFrame = CreateNewBrowserFrame(); //Load the HomePage into the browser view //if(pBrowserFrame && (GetStartupPageMode() == 1)) //pBr

Re: What's wrong with this small code - getting the DOM

2005-12-01 Thread Vijay
Here is the GetDOM function implementation as well... NS_IMETHODIMP CBrowserImpl::GetDOM(nsIDOMDocument* doc) { nsCOMPtr window; nsCOMPtr ndoc = (nsCOMPtr)doc; mWebBrowser->GetContentDOMWindow(getter_AddRefs(window)); if (window) { window->GetDocumen

What's wrong with this small code - getting the DOM

2005-12-01 Thread Vijay
Hi All, In the original code of mfcembed, I have changed this method - void CMfcEmbedApp::OnNewBrowser() { CBrowserFrame *pBrowserFrame = CreateNewBrowserFrame(); //Load the HomePage into the browser view //if(pBrowserFrame && (GetStartupPageMode() == 1)) //pBrowserFrame->m_w