Closed xiaoyaocode163 closed 1 year ago
like this:Support #import "WebView2.tlb" · Issue #22 · MicrosoftEdge/WebView2Feedback · GitHub https://github.com/MicrosoftEdge/WebView2Feedback/issues/22
like this ,com activex control(ocx) for cef: GitHub - mobileFX/WebKitX: Chromium Embedded Framework (CEF1) ActiveX Wrapper https://github.com/mobileFX/WebKitX
@xiaoyaocode163 Sorry for the delayed response. We don't have current plans in this area. Thanks!
Just a WebView2Loader.dll, 108KB, and then do a VB6, VBA can be used is not difficult? Let's say 208 kelvin, 1,000 kilobytes. If the computer itself installed Google kernel EDGE, then install the WEBVIEW SDK will take up a lot of space. In theory, it shouldn't take up 300MB, and most of the files should be similar and shareable.
.NET development of controls or classes, DLL, also can not be referenced in VB6,VBA, more unable to use in DELPHI,qt inside. Microsoft a lot of practices, put themselves completely isolated. It's such a simple thing, but no one ever takes it seriously. In fact, the normal practice is to set up the WEBBWORSER control inside you can directly support IE6,IE11, the old version of edge,chrome kernel edge. There is no JSON, WEBSOCKET object for VBA, or SQLITE driver or no-driver solution that Microsoft should have built into the operating system 20 years ago. Not supported by Windows 11.
i put a sample ,someone can download test. vb6 edge webview demo by IUnknown,only WebView2Loader.dll-VBForums https://www.vbforums.com/showthread.php?900231-vb6-edge-webview-demo-by-IUnknown%EF%BC%8Cwithout-rc6-dll&p=5607760#post5607760
create webview2 object by vb6,CreateCoreWebView2EnvironmentWithOptions-VBForums https://www.vbforums.com/showthread.php?900226-create-webview2-object-by-vb6-CreateCoreWebView2EnvironmentWithOptions
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) www.vbrichclient.com/en/Downloads.htm
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 spoiled. It runs slowly and is troublesome to develop. Developers don't like it. There is no way to use PHP a lot. 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.