This is not a question, but a description of a solution. I hope that it may prove of interest and use to others and that more experienced VB6 users may add further comments.
The Webbrowser control was designed to work in an integral fashion with MS Internet Explorer. However, from Internet Explorer 7 onwards, there appear to be incompatibilities between Webbrowser and Internet Explorer when the Webbrowser is being used in the VB6 design mode (ie. .vpb file).
According to literature, any .exe program developed and generated from VB6 using a machine with IE6 or earlier will continue to work on XP machines and, it is assumed, Win 7/32 machines which have later versions of Internet Explorer installed (ie. 7 or 8)
However the problem which arises is that when VB6 is run in design mode on a machine having Internet Explorer 7 or later the Webbrowser gives rise to "file not found" errors.
Here is the fix I arrived at. This ONLY needs to be applied to a machine which is running / developing a VB6 Webbrowser program and which has Internet Explorer 7 or later installed. Machines which will run just the .exe program do not require further attention as far as I am aware.
The fix described has been tested on two PCs running XP Sp3 with IE8.
Registry changes.
Use start-run-regedit to enter the registry. Be VERY careful to follow these instructions exactly. If in doubt, do not proceed. In any case it is advised that a back-up copy of the registry be made first, so that in event of problems the previous configuration can be reverted to.
Find H.Key_CLASSES_ROOT / CLSID / 8856F961…….05A2 / INPROCECSERVER32
Change the entry from C:\Windows\system32\ieframe.dll to C:\Windows\system32\SHDOCVW.dll
Find H.Key_CLASSES_ROOT / CLSID / 8856F961…….05A2 / TOOLBOXBITMAP32
Change the entry from C:\Windows\system32\ieframe.dll,257 to C:\Windows\system32\SHDOCVW.dll,257
Find H.Key_LOCAL_MACHINE / SOFTWARE / CLASSES / TYPE LIB / EAB22ACO………AE0B / 1.1 / 0 / Win32
Change the entry from C:\Windows\system32\ieframe.dll to C:\Windows\system32\SHDOCVW.dll
And also note that in the VB6 project file for a program using the Web Browser the reference should be :
Microsoft Internet Controls ref. C:\WINDOWS\SYSTEM32\ieframe.oca
And in project components :
Microsoft Internet Controls C:\WINDOWS\Systen32\SHDOCVW.dll
Double check the accuracy of these changes, then re-start the machine.
I can not stress more the need for absolute accuracy in making these changes. The changes will not affect other functions of the XP Sp3 machine.
This problem must be well-known amongst VB6 Webbrowser users, but as a newcomer to the application of this control I had much difficulty in finding all of the solution above described.
camoore
Wales, UK


Reply With Quote

but i think its always good to talk about any issues in case it does happen to someone else
