Solved

About embeding...

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now