Question and Answer Database FAQ2137C.txt How to add the IE4.0 TWebBrowser Control Category :VCL Platform :All Product :C++Builder 1.x Question: When I try to install the TWebBrowser from the IE4.0 internet controls and I get RLINK32 errors. How do I install this control? Answer: Here is a short listing of what you have to do in order to use TWebBrowser: - Install Microsofts IE 4.01 (Build 4.72...) IE 4.0 has a bug concerning keyboard input - Use Components | Install | ActiveX, choose Micorsoft Internet Controls, TWebBrowser and TShellFolderViewOC shows up under classname, push OK in the OLE Controls import dialog box. - do not yet go to OK in the Components install Dialogbox, this would lead to the often reported RLINK32 out of memeory error - delete the file SHDOCVW.DCR in the Cbuilder\LIB directory. - now go to OK in the Components install Dialogbox, this starts the recompilation of the libs - in the SHDOCVW.HPP file in the Cbuilder\LIB directory you have to change in Line 208 from /* TWinControl.CreateParented */ __fastcall TWebBrowser(HWND ParentWindow): Olectrls::TOleControl( to /* TWinControl.CreateParented */ __fastcall TWebBrowser(HANDLE ParentWindow) : Olectrls::TOleControl( - now you can use the TWebBrowser Component -Example: Variant A=0,B=0,C=0,D=0; WebBrowser1->Height=450; WebBrowser1->Width=600; // WebBrowser1->Navigate("https://111.111.111.111/",A,B,C,D); WebBrowser1->Navigate("c:/Eigene Dateien/HTML/Fbt/index.html",A,B,C,D); -even https works fine 7/2/98 10:32:32 AM
Last Modified: 01-SEP-99