Author Topic: COM 64  (Read 20376 times)

0 Members and 1 Guest are viewing this topic.

JRS

  • Guest
Re: COM 64
« Reply #15 on: August 11, 2018, 05:09:49 PM »
I agree a web browser control is important in today's apps.

José Roca

  • Guest
Re: COM 64
« Reply #16 on: August 11, 2018, 05:32:21 PM »
Hosting the WebBrowser control I can do a lot of things using HTML5.

JRS

  • Guest
Re: COM 64
« Reply #17 on: August 11, 2018, 05:57:37 PM »
It's amazing what you can do in n a browser these days. JavaScript is a powerful DOM scripting engine that is tough to beat.

JRS

  • Guest
Re: COM 64 - Web Browser Control
« Reply #18 on: August 11, 2018, 11:32:55 PM »
 I found an interesting VB6 web browser control replacement. It seems to work on Windows 10 build 1803.

Quote
vbMHWB, ActiveX control Replacement for VB's Webbrowser control

This activeX control (Source included) creates and hosts multiple
instances of the same webbrowser control which VB, C++, Delphi, ... use.
The difference is that with vbMHWB you have total control over GUI,
Context menus, Accelerator keys, Downloads, Security, ... using various
new events, properties, and methods. This is in addition to most of the
properties, methods, and events that VB's webbrowser control offers.

=================================================
Here is a list of main features
=================================================

Allows viewing of all request headers (html, images, css, ...) with the
option of adding additional headers (HTTP+HTTPS).

Allows viewing of all response headers (HTTP+HTTPS).

Allows GUI customization using DOC_HOST_UI_FLAGS per Webbrowser Control
instance or globally.

Allows behavior customization using DOC_DOWNLOAD_CONTROL_FLAGS per
Webbrowser Control instance or globally. DLIMAGES, DLVIDEOS, ...

Disallows context menus or raises OnContextMenu event for each context
menu activated.

Disallows accelerator keys or raises OnAcceletorKeys event for each
accelerator key activated.

That, by default, is configured to take over user downloads using
FileDownloadEx and OnFileDLxxxx events.

That can be used as a simple download manager using DownloadUrlAsync
method and OnFileDLxxx events.

Allows fine tuning of security per URL via
SecurityManagerProcessUrlAction event.

Allows interception and overriding of HTTP security problems
via OnHTTPSecurityProblem event.

Allows interception and overriding of basic authentication requests
via OnAuthentication event.

It is as easy to use as any other ActiveX control. Register, make a
reference to it in your project and use.

In addition adds a host of new properties, methods and events.
NewWindow3, cracking and creating URLs,...

===================================================
The source is in C++ and included in vbMHWB sub folder. For those who
can not compile the dll and due to the fact that PSC does not allow
compiled dlls, you will need to download the compiled version from
http://sourceforge.net/project/showfiles.php?group_id=137627&package_id=151143&release_id=326449

===================================================
To run the vbDemo project. After unzipping/building the package, copy
vbMHWB.dll from binaries/build folder to your system folder and
register the control. (assuming system dir path is 'C:\windows\system32\')
regsvr32.exe C:\windows\system32\vbMHWB.dll.

===================================================
HompePage:
http://vbmhwb.sourceforge.net/

« Last Edit: August 12, 2018, 12:20:08 AM by John »

José Roca

  • Guest
Re: COM 64
« Reply #19 on: August 12, 2018, 12:47:41 AM »
It is not a replacement. It is wrapper that uses the WebBroser control and implements several classes and hooks to allow to customize or control some features. I also have written a "replacement" class with FreeBasic, although less complex because I'm only interested in hosting it, not in making my own internet browser.

JRS

  • Guest
Re: COM 64
« Reply #20 on: August 12, 2018, 01:06:44 AM »
The term replacement is used to describe this custom web control verses the standard VB web control. I get your point it's a wrapper. I think the guy did a nice job with it.

My most favorite feature of this control. The next best feature is the multiple documents / windows using only one web control.

Quote
Sub LoadHTMLFromString(wbUID As Integer, sContent As String, sBaseUrl As String)
Loads sContent into a stream which is then loaded into the document. Unlike document.write, scripts are executed.
If content is greater than 256 characters then a base tag must be present to dispaly the entire content.
sBaseUrl sample: http://www.google.com.
« Last Edit: August 12, 2018, 02:06:18 AM by John »

JRS

  • Guest
Re: COM 64
« Reply #21 on: August 12, 2018, 10:02:39 AM »
I have yet to find a development environment (IDE/Debugger/GUI Designer) for Windows that would make me switch from VB6. The icing is SB can seamlessly interface with VB as a high level Windows API based on COM/OLE automation.

JRS

  • Guest
Re: COM 64
« Reply #22 on: August 12, 2018, 08:38:34 PM »
I was able to get VB6 and VS6 running under Windows 10 Build 1803.

You can have a peek HERE.

jack

  • Guest
Re: COM 64
« Reply #23 on: August 13, 2018, 03:46:20 AM »
Hi John
I am interested in the steps required to install VS6 on Windows 10, would you share with me the steps you followed?

JRS

  • Guest
Re: COM 64
« Reply #24 on: August 13, 2018, 08:22:52 AM »
Jack,

Here is the procedure I used to install VB6 and VS6 on Windows 10 Build 1803. Pay special attention to the install custom options.

6 on 10

jack

  • Guest
Re: COM 64
« Reply #25 on: August 13, 2018, 08:33:29 AM »
thanks John, but I already tried to follow the instructions on that site, the problem is that the instructions don't match for version VS6 professional, that is, there never was a custom options available

JRS

  • Guest
Re: COM 64
« Reply #26 on: August 13, 2018, 08:39:06 AM »
I'm using Enterprise. Early in the install process Custom rather then default is an option. I would grab a copy of Enterprise off the web.

jack

  • Guest
Re: COM 64
« Reply #27 on: August 13, 2018, 02:32:57 PM »
@John
I managed to install VB6 and VC6 but whenever I launch VB it gives the following error
Code: [Select]
Data View
Automation error
Error accessing the OLE registry
does that happen to you also?

JRS

  • Guest
Re: COM 64
« Reply #28 on: August 13, 2018, 02:50:51 PM »
You have to run VB6 and VS6 as admin or turn off UAC.

Btw  I installed as XP SP3 but running as Win7 emulation.
« Last Edit: August 13, 2018, 04:32:41 PM by John »

jack

  • Guest
Re: COM 64
« Reply #29 on: August 13, 2018, 05:28:08 PM »
thanks :)