Solved

About embeding...

Posted on 1998-01-26
4
139 Views
Last Modified: 2010-04-04
Is there a way to embed Internet Explorer or Netscape into my application that looks just like the one in HomeSite?

Thanks in Advance





0
Comment
Question by:test031097
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
mvz121697 earned 260 total points
ID: 1357585
If using Delphi 3 then you can import the MS-IE:
go to Component|Import ActiveX Control, and in the dialog
choose "Microsoft Internet Controls (Version 1.0)". or  (if it is not there) browse to shdocvw.dll.
(This file gets installed with MS-IE 3.0x)

A Twebbrowser component is then created in your ActiveX-component-pallete. Drop one on your form,
and maximize it (align=alClient).
On some event do:

var a,b,c,d:olevariant;
begin
   Webbrowser1.Navigate('www.microsoft.com',a,b,c,d);
end;

Greetings,
MvZ


0
 

Author Comment

by:test031097
ID: 1357586
Thanks mvz... It's works but I got a few questions to ask about this...

1) Do I need to include the file 'shdocvw.dll' into my setup files if I want to package my application?

2) Does it work with Internet Explorer 4?

3) What about Netscape Navigator?

If you could answer the 3 questions above, I will give you 60 more points

PS: You will still get the 200 points if you don't wish to answer  my question

Thanks
0
 
LVL 2

Expert Comment

by:mvz121697
ID: 1357587
1) Easy way is to include MS-IE in your 'system requirements'.
If MS-IE (3.x) is installed on the client machine, you don't have to do anything extra when installing your app.
I thought distributing only shdocvw.dll without installing the full MS-IE is not allowed by MS (not sure here)

2) Have not tested it, but it should work (if MS implemented the COM interfaces as they should be)

3) Not as an activeX (as far as i know)
But have you thought of:

- Opening the clients 'default browser'
shellexecute(handle,'open',pchar('http://etc.'),nil,nil,
sw_shownormal)

- Starting Netscape like:
shellexecute(handle,'open',pchar(netscape),pchar('http://etc.'),nil,sw_shownormal);

- Controlling Netscape through DDE.
(Browse netscape-homepage for more info)

Greeetings,
MvZ

0
 

Author Comment

by:test031097
ID: 1357588
Thanks for the info :o)


0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question