MicrosoftEdge / WebView2Samples

Microsoft Edge WebView2 samples
868 stars 471 forks source link

Need Webview2 Sample For vb6,vba,python,vbs(Webview2 For Visualbasic6.0) #96

Open xiaoyaocode163 opened 3 years ago

xiaoyaocode163 commented 3 years ago

A control or DLL that can be referenced by a COM interface that supports multiple development languages ​​is needed. There are now 3 more mature solutions, cef.dll, miniblink.dll, rc6+webView2Loader If you only need to install MicrosoftEdgeWebview2Setup, you can support VB6 to add controls, how convenient? (https://go.microsoft.com/fwlink/p/?LinkId=2124703) Just like VB6 adds excel.exe, the developers are so happy.

We have a miniblink.dll in China, which only needs one 20M. It is equivalent to chromium.dll, packaging it as simple as SQLITE3.dll. It's just that the version is relatively old. After all, it was developed by individuals. Now small companies are partly free and partly commercialize OCX controls packaged by Google's kernel. https://miniblink.net/ https://miniblink.net/views/doc/APIDocument/API/index.html Can replace the original electron seamlessly, only 3 files are needed to replace the original electron The volume is only one twentieth of the original version of electron, seamlessly replace the original version, no need to change the js code, support windows xp

The second solution is for loyal VB6 fans to package the edge into a control, which requires webView2Loader.dll (108KB), RC6.dll (1Mb)

VB6 WebView2-Binding (Edge-Chromium)-VBForums https://www.vbforums.com/showthread.php?889202-VB6-WebView2-Binding-(Edge-Chromium)

IE6 used to be the browser with the most users, but it was completely defeated by Google Chrome in 2012. Now Microsoft has also chosen to use the Google kernel chromium. This may be a good thing, but please don't give up IE completely. Vb6 has supported webbrowser for 23 years, right? The COM interface is always the same. You can use it directly after you drag the control and enter a URL. The programming difficulty learning cost is 0. Since oprea, firefox, chrome, they all do not support vb6 control method calls. Simply put, they only want you to use his browser EXE, not one of their controls or references. To use them, you must use the open source chromium, after tens of minutes and hours of compilation, In addition, it takes tens of millions of dollars to build a most common browser by studying for several months and years. If there is a chromium.ocx or chromium.dll, just like sqlite3.dll, we can directly call it by stdcall.

In fact, since Edge started, Microsoft should develop an ocx control for vb6, vba form, delphi and other development tools. The edge, which is completely different from the IE kernel, is rarely used by anyone. This is one reason why Microsoft does not support developers.

Once vb6 and vc6 were the same powerful development tools, they were abandoned after 1998. .NET code is easy to be decompiled, and there are many controls on the form, and the loading speed and running speed are also very slow. ASP.NET is also too big, running speed is slow, development is troublesome, developers don't like it, a lot of use of PHP is no way. Originally, VBS is a very convenient tool, we only need to develop a small VSCODE IDE for other uses. In fact, you don't need powershell anymore. In fact, VBS should be made cross-platform, so no one will use PYTHON. Now I heard that excel vba should be replaced with python and Javascript code? Old programmers are sad. China's linux version wps office software has developed a javascript script to replace VBA, because VBA cannot run on LINUX.

Google Chrome browser v8, he all runs in a deductive type. It's a pity that VBA hasn't been compiled for 25 years, and the speed is 5-20 times slower than V8. If VBA can be compiled into COM DLL, how convenient? The running speed must be many times faster than the explanation running.

xiaoyaocode163 commented 3 years ago

like this: Two ways to open IE with vbs. The implementation code of starting IE browser in VBScript https://blog.csdn.net/u010308173/article/details/38585329

Two ways to open IE with vbs. The implementation code of starting IE browser in VBScript

The first method InternetExplorer.Application StartURL = "www.jb51.net" set IE = CreateObject("InternetExplorer.Application") IE.Visible = true IE.Navigate StartURL The second method WScript.Shell dim Wsh Set Wsh=WScript.CreateObject("WScript.Shell") On error Resume Next Wsh.Run "www.jb51.net"

Support #import "WebView2.tlb" · Issue #22 · MicrosoftEdge/WebView2Feedback · GitHub https://github.com/MicrosoftEdge/WebView2Feedback/issues/22

xiaoyaocode163 commented 3 years ago

not only visual studio developers Need webview,VBA,DELphi,go,qt,all need a ocx control.

Microsoft and The Web Today Our intent is profoundly informed by our context. Historically, Microsoft has focused on three primary constituencies: end-users, developers, and enterprises/organizations. These audiences have informed the investments we have made in Internet Explorer in the past, and now inform the investments we make in Microsoft Edge. As we have listened to these customers over the last few years, a consistent theme they echo is the increased complexity of their environments, and a desire for consistency, simplicity, reliability, compatibilit FROM:MicrosoftEdge/MSEdge: Microsoft Edge https://github.com/MicrosoftEdge/MSEdge

xiaoyaocode163 commented 1 year ago

I MAKE A DEMO FOR VB6: vb6 edge webview demo by IUnknown,without rc6.dll-VBForums

https://www.vbforums.com/showthread.php?900231-vb6-edge-webview-demo-by-IUnknown%26%2365292%3Bwithout-rc6-dll