Page 1 of 3

IE

Posted: Tue May 24, 2022 4:32 pm
by Natter
Hi,

I completely forgot that Microsoft will disable IE on June 15. And I have a large application (xHarbour/BCC7) using ActiveX IE. Then I can take action !

Re: IE

Posted: Tue May 24, 2022 8:15 pm
by hmpaquito

Re: IE

Posted: Tue May 24, 2022 8:35 pm
by Natter
Thanks. I want to try webview.dll However, there are questions :
1. Where to download webview.dll ?
2. Is it possible to get the page as document ?
3. How to build a program with support webview.dll ?

Re: IE

Posted: Tue May 24, 2022 9:09 pm
by Jimmy
hi

search in FiveWin Forum for WebView2.

Re: IE

Posted: Wed May 25, 2022 3:56 am
by Natter
Yes, I read this forum, but I didn't find any answers to my questions in it :(

Re: IE

Posted: Wed May 25, 2022 5:32 am
by Jimmy
hi,

Antonio have made a "Wrapper" for FiveWin from WebView2 which is the "Engine" of EDGE

you need to download "MicrosoftEdgeWebview2Setup.exe"
you have to search in FiveWin Forum for BCC ".Lib" while i use HMG and MinGW ".a"

as i only have run some Demo under HMG i can tell you more, sorry

Re: IE

Posted: Wed May 25, 2022 6:29 am
by Natter
I read the topic Using WebView with Borland !!!

viewtopic.php?f=3&t=41143&hilit=Webview2&start=75

There Antonio shows the usage webview.dll
#include "hbdyn.ch "
plib := hb_LibLoad( "webview.dll" ).
Only I didn't understand how to compile

Re: IE

Posted: Wed May 25, 2022 11:05 am
by Antonio Linares
Dear Natter,

What issues do you have to compile it ?

Please post here the output ? Do you get errors ?

Re: IE

Posted: Wed May 25, 2022 11:29 am
by Natter
Antonio, I don't have any mistakes yet!
I just wanted to ask :
1. where can I download webview.dll ?
2. How to compile via VS or via BCC7 ?

Re: IE

Posted: Wed May 25, 2022 11:47 am
by Antonio Linares
Dear Natter,

First you have to download and install this:
https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section

Second, you have to download this webview.dll:
https://github.com/FiveTechSoft/FWH_tools/blob/master/webview.zip

Working example:
viewtopic.php?p=248148&sid=de65bf49536f575693b46c9b8767215d#p248148

You can use Borland or MSVC to build it. Whatever you prefer

Re: IE

Posted: Wed May 25, 2022 11:59 am
by Natter
Edited: Fixed in the previous post

When I try to go to this address, I get a 404 error
https://github.com/webview/webview/tree/master/dll/x86

Re: IE

Posted: Wed May 25, 2022 12:41 pm
by Antonio Linares

Re: IE

Posted: Wed May 25, 2022 1:20 pm
by Natter
Thanks, I downloaded everything. In IE, using the :GetProp("documet") method I could get the document of the open page. Is it possible to do this with webview ?

Re: IE

Posted: Wed May 25, 2022 2:55 pm
by Antonio Linares
First of all, is it working fine for you ?

Next, please explain what you need with more detail, thanks

Re: IE

Posted: Thu May 26, 2022 12:02 pm
by Natter
Installed Microsoft.WebView 2.Fixed Version Run time.101.0.1210.53.x86
Downloaded an example. Example works well.
Reassembled webview.prg (BCC7, FWH2012, 32)
When starting, an empty window appears for 3 seconds. Then the program closes without an error. (I tried both under Harbour and under xHarbor)