Re: Problem creating dialog with hosted browser control in dll

From: Adrian (adrian_at_xxx.xxx)
Date: 03/14/04

  • Next message: Richard Bell: "Re: How determine when the page is REALLY loaded?"
    Date: Sun, 14 Mar 2004 15:44:15 GMT
    
    

    Sorry for wasting the bandwitch on this group. I added a call to
    CoInitialize in the dll and that solved the problem.

    Adrian
    "Adrian" <adrian@xxx.xxx> wrote in message
    news:rET4c.70955$vn.209562@sea-read.news.verio.net...
    > Just to make sure that the problem is with the browser control, I set the
    > dialog flag "no fail create" to true, and now the dialog box is created
    all
    > right, but the browser control never shows up.
    > Adrian
    >
    > "Adrian" <adrian@xxx.xxx> wrote in message
    > news:7RS4c.70948$vn.209967@sea-read.news.verio.net...
    > > Hi,
    > >
    > > In my dll I have an object of a CDialog derived class, which should
    hosts
    > > the
    > > browser control. The strange thing is that DoModal or Create on this
    > object
    > > fail when the browser control is hosted, but if I remove the browser
    > control
    > > from the dialog, the window shows up just fine. And yes, I called
    > > AfxEnableControlContainer(). Similar code in an executable works. So it
    > > looks like the combination dll + hosting the browser control is not
    > working
    > > in my case. Any ideas what I may be doing wrong?
    > >
    > > Any help will be greately appreciated
    > >
    > > Thanks,
    > >
    > > Adrian
    > >
    > >
    >
    >


  • Next message: Richard Bell: "Re: How determine when the page is REALLY loaded?"

    Relevant Pages

    • Re: How to embed the browser control in a dll
      ... Adrian ... > window on ... >> which to host the browser control? ...
      (microsoft.public.inetsdk.programming.webbrowser_ctl)
    • Re: How to embed the browser control in a dll
      ... > In my dll I have now an object of a CDialog derived class, ... The strange thing is that DoModal or Create on this ... > fail when the browser control is hosted, but if I remove the browser ... Do you have AFX_MANAGE_STATE at the top of all exported DLL methods, ...
      (microsoft.public.inetsdk.programming.webbrowser_ctl)
    • Cannot create web browser control using CWnd::CreateControl
      ... I am using the web browser control in an VC++ MFC DLL, ... program that programatically loads and the DLL. ...
      (microsoft.public.inetsdk.programming.webbrowser_ctl)
    • Problem creating dialog with hosted browser control in dll
      ... In my dll I have an object of a CDialog derived class, which should hosts ... The strange thing is that DoModal or Create on this object ... fail when the browser control is hosted, but if I remove the browser control ...
      (microsoft.public.inetsdk.programming.webbrowser_ctl)
    • Re: How to embed the browser control in a dll
      ... >> which to host the browser control? ... In my dll I have now an object of a CDialog derived class, ... the window shows up just fine. ...
      (microsoft.public.inetsdk.programming.webbrowser_ctl)