11-20-2014 02:10 AM
Hi
we are using CVI 2012 and we want to register a Microsoft Internet Webbrowser by activeX. We want to use the following Cmd
int NewActiveXCtrl (int Panel_Handle, char Control_Label[], int Control_Top, int Control_Left, const GUID *Class_ID, const IID *Interface_ID, char License[], HRESULT *ActiveX_Error);
but we do not know what the GUID and ClassID is.
How can we create an ActiveX Microsoft Internet Webbrowser in a Panel?
Can anybody help us?
thanks in advance
Oliver
11-20-2014 07:36 AM
Hello Oliver!
One easy solution for you is to look into the <CVI samples>\userint\activex\WebBrowser.prj application source code. You could build your application on top of this sample.
Also, if you open the source code for the inet.fp instrument, which implements the Web Browser API used in this sample (<CVI samples>\userint\activex\inet.c) you'll notice that function INET_NewWebBrowserIWebBrowser2 should perform the exact task you need. It passes a Microsoft Internet Explorer Web Browser GUID to NewActiveXCtrl function:
GUID clsid = { ... };
Best regards!
- Johannes
11-20-2014 11:06 AM
Hello Johannes,
GREAT, I got it.
I had read the samples before but I didn't come to the idea to have a direct look into the inet.c. There I could get the information, thanks a lot for this.
My applikation is running now, but when I call a website with a script running I get an error message like attached. On website without scripts it is running without problems.
Do you have an idea what this could be?
best regards
Oliver
10-05-2015 10:48 PM
i have this error in webbrowser as well and it effecting my automated web remote system and sometime it's happend randomly.
has you found the solution to eliminate this? can you share with me please.