Solved

About embeding...

Posted on 1998-01-26
4
137 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
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

713 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