From: yom on
Hi all.
I am having some troubles with an application that has to open a
dialup up connection.

I am using the Ras API RasDial to call the remote modem an all works
properly.
I am also able to close the connection by calling the RasHangUp API:
in this case i can redial the number and open a new connection.

The problem comes out when the line is busy or when any other error is
rised during the dialing.
After an error if I redial the number trying to reopen the connection
RasDial always fails and returns the error code 756 (line already in
use). After this error i can't use the modem unless I restart my
application: calling the RasEnumConnections API no connections are
available so I can't call the HangUp API trying to close properly the
connection making the modem usable again ...

PLEASE, someone can help me?

Tanks in advance,
yom
 | 
Pages: 1
Prev: RTD replace DDE in .NET?
Next: printform