Questions tagged [iwebbrowser2]

178 questions
0
votes
1 answer

How to set the "base URL" for a HTML document loaded from memory using IWebBrowser2?

I'm using IHTMLDocument2::write() as described here in order to load HTML from memory into an IWebBrowser2 instance. The code is shown below: #include void CMyDlg::WriteHTML(const wchar_t* html) { IDispatch* pHtmlDoc =…
j b
  • 5,147
  • 5
  • 41
  • 60
0
votes
0 answers

How do I get two IWebBrowser2 objects to emulate different Internet Explorer versions?

I'm working with an MFC application (C++). We use embedded browsers in some dialogs - IWebBrowser2 ActiveX objects. By default, they emulate IE version 7 (for compatibility reasons). We need a newer version to be able to display modern webpages, so…
UglySwede
  • 429
  • 1
  • 7
  • 16
0
votes
2 answers

Getting IWebBrowser2 pointer from event DISPID_TITLECHANGE

Im working on a Browser Helper Object, and I am trying to access the IWebBrowser2 that fires an event. With NavigateComplete2 and other events I can easly do it because I get the pointer on the parameters of Invoke. But I was reading this on msdn…
gtilx
  • 2,055
  • 4
  • 17
  • 21
0
votes
1 answer

Sinking DWebBrowserEvents2 events appears to hang programmatic navigation

I posted this question on the MSDN forums, but my experience has been a better quality of answer here on Stack Overflow, so I'm posting here as well. As I've posted several times before, I'm working on a browser automation framework, automating…
JimEvans
  • 27,201
  • 7
  • 83
  • 108
0
votes
1 answer

iWebBrowser::Navigate Deadlock after a ole32.dll exception

I have a question related to windows embedded browser and COM. What I am trying to do is to display some data to the user in a HTML form so I use the iwebbrowser2 control to achieve this. I have this weird deadlock or hang in my application after a…
0
votes
1 answer

Operation aborted Exception in WIN10 when using SHDocVw Navigate2 for navigatng ie

I have a C# project that open urls in an IE Browser using Interop.SHDocVw. The code is using a single instance of a InternetExplorerClass object and navigates to different urls. These urls are all in the Intranet zone. The code works fine on WIN7…
Yosi Maurer
  • 101
  • 2
  • 6
0
votes
1 answer

How do I create a low-integrity instance of Internet Explorer using CoCreateInstance?

From a standard, non-elevated, medium-integrity process, I need to create an instance of Internet Explorer 7 on Windows Vista, and I need to use CoCreateInstance to do it. I've tried using techniques like those outlined in this thread, but I've been…
JimEvans
  • 27,201
  • 7
  • 83
  • 108
0
votes
1 answer

c++ IWebBrowser simulate click frame

I have a code that fetch all url but i want to make a change to make a mouse simulate click on the iframe window and output the url it redirects to. Here is the code i tried. #include // _variant_t #include //…
MegRay
  • 65
  • 9
0
votes
0 answers

How to restart a stopped webbrowser-control

The official documentation stated that the IWebBrowser2::Stop method "Cancels a pending navigation or download, and stops dynamic page elements, such as background sounds and animations". I use a webbrowser control to show some local stuff (files)…
Old newbie
  • 811
  • 2
  • 11
  • 21
0
votes
1 answer

IWebBrowser2 show window after rendering is completed

I am using IWebBrowser2 interface for rendering an IE page inside a window. I need to show the windows to the user once every thing is rendered. Now I am using DocumentComplete event, to call ShowWindow function. But the actual content shows after…
Nithin Mohan
  • 182
  • 4
  • 13
0
votes
1 answer

IWebBrowser2 HTTP response headers

I have the same question that Dragos asked here "...Hi! I'm developing an application which hosts an web browser control. I'm getting access to it through IWebBrowser2 interface. Is there any way to have access programatically to the responses…
Dinis Cruz
  • 4,161
  • 2
  • 31
  • 49
0
votes
1 answer

IE8 breaks compatibility view if embedded as an activeX

Using it as a CDHTMLDialog from MFC, I noticed that for some sites (such as wikipedia.org) the embeded IE reports a documentMode property of 7, while using the IE app properly presents the documentMode property as 8. Same thing is true for IE11 too…
kellogs
  • 2,837
  • 3
  • 38
  • 51
0
votes
1 answer

InVisible WebBrowser in a BHO

I am trying to build a IE plugin which have to make few webrequest on users behalf. To make a web request programatically I can using following code. var url = "www.example.com"; var request = (HttpWebRequest)WebRequest.Create(url); var response =…
aMa
  • 629
  • 3
  • 10
  • 19
0
votes
3 answers

not enough actual parameters?

The following program returns error : e2035 not enough actual parameters in 2 places (lines 39 and 45) and is not compiling. Can someone please help me out? Can I put 0 or null in place of parameters here? unit Unit1; interface uses Windows,…
Omair Iqbal
  • 1,820
  • 1
  • 28
  • 41
0
votes
3 answers

how do i login to gmail via internet explorer using iwebbrowser 2

is it possible to login to sites like facebook,gmail using iwebbrowser2? in the code below what can i add so that it can login to gmail(with ie8 as browser) using the username and password i put in a variable? MyBrowser :=…
Omair Iqbal
  • 1,820
  • 1
  • 28
  • 41