|
-
Jan 18th, 2022, 01:05 PM
#11
Re: VB6 WebView2-Binding (Edge-Chromium)
 Originally Posted by C--E
Hello,
I downladed RC6 a few days ago from vbRichClient.com and I registered RC6.dll with the aid of RegisterRC6inPlace.vbs.
Then I installed the "evergreen-WebView2-runtime" via the MS-download-link.
I tried to run WebView2Demo.vbp, got the error "Procedure declaration does not match description ..." and corrected the code as explained in post #60.
Now I expected the demo to run, but it always stops in the following line:
Code:
If WV.BindTo(picWV.hWnd) = 0 Then MsgBox "couldn't initialize WebView-Binding": Exit Sub
with the following error message:
"Runtime Error 53:
Error in FindFirstFile: ErrNum: 3, The system cannot find the path specified."
(I'm using VB6 Version 8176 under Win10Pro).
Any ideas what is wrong or what I did wrong?
There seems to be a problem with the installation of the WebView-Runtime...
The BindTo-call is looking for the WebView-Runtime-BaseFolder via the following Path-Expression:
(for your Immediate-Window):
?New_c.FSO.GetSpecialFolder(CSIDL_PROGRAM_FILESX86) & "\Microsoft\EdgeWebView\Application"
When I paste the above into my immediate-window (followed by pressing <Return>),
then it prints out:
C:\Program Files (x86)\Microsoft\EdgeWebView\Application
This path exists on my machine (when I paste it into Explorer.exe, it shows the content)...
Under this path, the BindTo-call then continues, to list determine the Folder with the highest Version-Number...
So, could you check what your immediate-window says, the Base-InstallPath of the WebView-runtime is -
and whether it exists on your machine?
HTH
Olaf
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|