Groups > Borland > Borland C plus plus builder Active X > Using DdeClientConv problem




Using DdeClientConv problem

Using DdeClientConv problem
Sun, 1 Jul 2007 11:05:44 -0400
Hello,

I am having some trouble understandin how to get the URL Title from IE using 
DDE.

I am using the following code and this works, when I open up an IE session. 
But when I open a second IE session then the URL retreived is the new IE 
session. My problem is I do not understand how to get the URL from the first 
session. That is how do I keep track of all the IE sessions that are open.

I am sure this is just my understanding of how the DDE works, but if someone 
could show me some sample code on how to keep track of multiple IE sessions 
I sure would appreciate it.

Thanks

Mike





void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
   if (DDE->SetLink("IExplore", "WWW_GetWindowInfo"))
   {
       Form1->Memo1->Lines->Add( DDE ->
RequestData("0xFFFFFFFF, sURL, 
sTitle") )                         ;
    }
   else
   {
       Form1->Memo1->Lines->Add( "IE is not running" ) 
;
   }
   if(DDE)
   {
      DDE->CloseLink() ;
   }
}

Post Reply
about | contact