Questions tagged [iwebbrowser2]
178 questions
0
votes
0 answers
IHTMLDocument3 of all tabs
My aim is to get a IHTMLDocument3 interface of each tab opened in the same internet explorer window, in order to fill out some forms.
What I've done until now: I assign a IWebBrowser2 interface to the variable "iweb". I then use "iweb" to navigate…

theRunner
- 179
- 1
- 8
0
votes
0 answers
Multiple IWebBrowser2 not releasing memory
I've a big plain c++ project where I implemented a webbrowser control (the idea come from https://github.com/Tobbe).
Well I inject some external method with the AddCustomObject. The problem is when I need to dispose a big page (1.9KB) with many…

Andrea Forlin
- 11
- 1
0
votes
2 answers
How to take the snapshot of a IE webpage through a BHO (C#)
I am trying to build an IE BHO in C# for taking the snapshot of a webpage loaded in the IE browser. Here is what I'm trying to do:
public class ShowToolbarBHO : BandObjectLib.IObjectWithSite
{
IWebBrowser2 webBrowser = null;
public void…

Kapil
- 572
- 1
- 5
- 23
0
votes
0 answers
How to get the Flash object in C#
I'm trying to get the flash object with ShockwaveFlashObjects component. I get the browser object successfully, but I'm wondering how to get the Flash object through the browser object in IWebBrowser2 type. The code below shows the interface I…

luziqin
- 51
- 1
- 9
0
votes
1 answer
IWebBrowser2 Controlling visibility
I create hidden IWebBrowser2 object and it work's fine but after few seconds I want to
change visibility to true and my application crashes.
pBrowser2->put_Visible(VARIANT_TRUE);
What I'm doing wrong ?

DarkGL
- 63
- 5
0
votes
1 answer
How to ignore pages that are not real webpages or contain msgbox with WebBrowser2?
I used System::Net::WebClient::DownloadString to get HTML code of some webpages.
But, it doesn't work for some specific pages.
For this reason, I used WebBrowser2 for these pages.
However, this way has some problems since it really loads pages.
I…

Gimun Eom
- 411
- 5
- 17
0
votes
0 answers
IWebBrower2.Navigate Not Rendering Checkboxes when ran as a Windows Service
I have a class I scraped together called HtmlPrinter which contains a method called 'Print' that takes in a html file, renders using IWebBrowser2.Navigate, then prints using IWebBrowser2.ExecWB. My HtmlPrinter.Print method works great and renders…

Tony Rush
- 199
- 5
- 13
0
votes
1 answer
enumerate forms in BeforeNavigate2 event
I'm writing an IE BHO, I'd like to know how to enumerate forms in event callback.
here's the code that enumerates forms in BeforeNavigate2 event, but the length is always 0.
STDMETHODIMP CEventSink::Invoke(DISPID dispIdMember,REFIID riid,LCID…

aj3423
- 2,003
- 3
- 32
- 70
0
votes
0 answers
How to get IWebBrowser2 of Internet Explorer running in "metro" mode?
I've got some C++ code, that uses ShellWindows to retrieve instances of IWebBrowser, but there is a problem, when IE is run in metro-mode - there are no instances in ShellWindows.
Are there any methods to retrieve IWebBrowser in this situation or…

Coldze
- 71
- 1
- 6
0
votes
1 answer
How to get an active x control
i try to make a basic browser using IWebBrowser2 on dialog based mfc
i insert an active x control into dialog, such as "microsoft web browser"
and i try "AtlAxGetControl" for getting a IWebBrowser2 pointer
but, i always get a e_fail, "res" always…

Arena Son
- 95
- 1
- 8
0
votes
1 answer
TEventObject & IE tabs gives fatal error
I am using this code
try
document := (pDisp as IWebbrowser2).Document AS IHTMLDocument2;
Body := Document.body;
Links := Document.links;
for i := 0 to (Links.length-1) do
begin
tmp := (Links.item(i, 0) as IHTMLElement);
…

Sebastian
- 796
- 4
- 12
- 22
0
votes
1 answer
Failed to Post Data using WebBrowser(VC)
I have an MFC application with CWebBrowser embedded. I wanna post data when navigating to the specified web .
With some investigation around internet,
I get to know one argument of the Navigate method aims to pass it. But I try it out several…

user1338624
- 174
- 1
- 10
0
votes
1 answer
The web link is loaded in WebBrowser and throws Script error while the link is displayed in IE smoothly
I have a MFC application with CWebBrowser embedded.
Currently , I run into an issue :
my browser fails to load some web pages(lack of object , error about JS stuff) and always throws script error while the same web page cab be loaded in IE(10)…

user1338624
- 174
- 1
- 10
0
votes
1 answer
Does websocket not work with IWebBrowser2::Navigate?
I am writing small html websocket application. This html page works fine at IE window but if same page is tried to open using IWebBrowser2::Navigate then it throws an error "WebSocket is undefined" in standard java script error message box.…

Andy
- 338
- 3
- 10
0
votes
1 answer
IWebExplorer2 Navigate fails with Error reading characters of string
IWebExplorer2::Navigate(..) (or Navigate2) is failing to navigate some urls. Like while navigating following url: *https://www.facebook.com/dialog/oauth/?api_key=&redirect_uri=&state=NONE* , I am getting the error **Error reading…

Sajad Karim
- 321
- 3
- 18