Articles   Members Online:
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
Open a webpage in a webbrowser that's allready active Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
12-Sep-03
Category
COM+
Language
Delphi 5.x
Views
124
User Rating
No Votes
# Votes
0
Replies
0
Publisher:
DSP, Administrator
Reference URL:
DKB
			Author: Erwin Molendijk

Open a webpage in a webbrowser that's allready active.

Answer:

1   {
2   This opens a webpage in a browser window that's allready active.
3   I found the code somewhere on the borland site.
4   }
5   
6   procedure GotoWebPage;
7   var
8     DDE: TDDECLientConv;
9     URL: string;
10    URLFired: Boolean;
11  begin
12    URL := 'http://www.hotbot.com';
13  
14    DDE := TDDEClientConv.Create(nil);
15    try
16      DDE.ServiceApplication := 'iexplore';
17  
18      if DDE.SetLink('iexplore', 'WWW_OpenURL') then
19        if DDE.RequestData(URL + ',,1') <> nil then
20          if DDE.SetLink('iexplore', 'WWW_Activate') then
21            URLFired := DDE.RequestData('0,0') <> nil;
22    finally
23      DDE.Free;
24    end;
25  end;


			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC