Ther eis a freeware control called fngRasyNotify which I have used and still
do on a couple of apps. It triggers an event when the ras connection is
made, and another one when the connection is lost.

Sounds like     What Patric Dunford was saying to me.

I will Email it to you...

Chirs

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Jeremy Coulter
Sent: Thursday, 24 June 1999 08:01
To: Multiple recipients of list delphi
Subject: RE: [DUG]: Detecting a RAS connection


Ok. Maybe I need to be a bit clearer.

I am dialing normally via a DUN connection I already have, and DONT want to
deal with the RAS connection code myself.

I am using a standard DUN connection and using that to dial in, and I want
my program to detect that an active connection is active or availible.

I can deal with this in another wee app that uses my DUN connection settings
and one that has onconnect events etc.(via a RAS componenet) but thats not
what I want to do.

I guess I can have a wee timer that tries to send data out a port, and that
traps the error that tells it it cant send data out the port, but this is
prob. less than ideal, butmaybe its the only thing I can do.

Any suggestion welcome.

THanks, Jeremy Coulter

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Patrick Dunford
> Sent: Wednesday, June 23, 1999 10:35 PM
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: Detecting a RAS connection
>
>
> There is a callback function RasDialFunc that you can use.
> However I suspect
> Windows will put its own in in order to be able to return the connection
> status of connections it is making.
>
> You can also use polling with the following component (which also
> comes with
> the Delphi headers for all the functions in the RAS API that you can also
> use.)
>
> http://www.geocities.com/SiliconValley/Sector/9792/delphi/tools.htm
>
> Drop a component on your form. In the OnActiveConnection event
> handler, put
> the code you want to be executed. This gets called once for each active
> connection. Then call the component's GetConnections method.
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > Behalf Of Jeremy Coulter
> > Sent: Wednesday, 23 June 1999 22:12
> > To: Multiple recipients of list delphi
> > Subject: [DUG]: Detecting a RAS connection
> >
> >
> > Hi all.
> > I was wondering how I would go about detecting when a RAS connection is
> > made.
> > I want to have a wee app do some stuff when a RAS connection is
> > detected....much th same way as when ICQ detects that you have
> called the
> > net, and it automatically connects you to the ICQ network.
> >
> > Anyone know hwo I go about detecting the ras connection ??
> >
> >
> > Thanks,
> >
> > Jeremy Coulter
> >
>
> ------------------------------------------------------------------
> ---------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
>


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to