Click here to Skip to main content
Licence CPOL
First Posted 16 Dec 2003
Views 56,379
Bookmarked 23 times

DDE with Internet Explorer and Netscape

By | 16 Dec 2003 | Article
DDE with Internet Explorer and Netscape.

Introduction

DDE (Dynamic Data Exchange) is a wonderful (PRIMITIVE) way to exchange data between applications. With this information at hand, I started developing an application to get the loaded URLs in IE and Netscape.

I started by searching on the NET for some nice articles or sample code to start with, but I found absolutely nothing. So I decided if I managed to do it, I would certainly put it up somewhere so if someone STILL wants to do something like this, then I can be of some help.

Doing it with IE was simpler than ever.

DDE Server Name for IE is IExplore and I simply connected to the IExplore and subscribed to a service (WWW_RegisterURLEcho) and WALA, every time IE loads a URL, it called my callback function.

But Netscape was a real pain.

First off they change their DDE Server name every time they throw a new version in the market.

  • with Netscape4.X it was "Netscape"
  • with Netscpae7 it is "Netscape6"

And worse of all, the document says that it supports WWW_RegisterURLEcho, but from what I found out, it doesn't. But there is another service WWW_GetwindowInfo, which will give you the currently loaded URL in Netscape window.

The sample application that is available here gives the URL for all loaded IE windows and one Netscape browser (I can't do everything for you :))

I wrote some wrapper functions around the DDE API. I thought of making a CDDE class, but there is really not much to wrap.

Hope you all benefit from this code.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Monty2

Web Developer

India India

Member

Programming Since the the Dreaded 286 Assembly Days
 
currently MFC and ATL NUT
 

Don't take life seriously because you can't come out of it alive.
-Warren Miller

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralVry Urgent PinmemberAshwini Hivarkar19:53 18 Feb '08  
GeneralRe: Vry Urgent PinmemberMonty25:39 19 Feb '08  
GeneralOn Vista not working PinmemberAshwini Hivarkar1:42 15 Feb '08  
GeneralFor FireFox Pinmembershafqatmasood20:07 4 Jan '07  
GeneralIE7 Pinmemberbertram66610:17 4 Jan '07  
GeneralI can not get title PinsussAnonymous6:55 11 Nov '04  
GeneralIt cannot work with Netscape6.x PinsussAnonymous3:30 9 Oct '04  
GeneralRe: It cannot work with Netscape6.x PinmembermailMonty2:04 10 Oct '04  
GeneralWindow Text PinmemberCollin Parker8:34 16 Aug '04  
GeneralNewnie PinmemberHuaHsin23:51 16 Mar '04  
GeneralRe: Newnie PinmembermailMonty3:03 18 Mar '04  
GeneralDDE classes Pinmemberbryce15:48 18 Dec '03  
Generalit Rocks PinsussAnonymous23:28 16 Dec '03  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web03 | 2.5.120517.1 | Last Updated 17 Dec 2003
Article Copyright 2003 by Monty2
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid