Originally posted by: David Dalzell
I'm using visual c++ v5 which doesn't have this function.
ReplyOriginally posted by: Alexei Kovalev
No RAS needed if you use WinInet API - call
InternetHangUp(0)
Originally posted by: Aixing
I programmed on a Internet project with Dial-up
API last year, it works well.
Ras API is suitable for Windows 9.x and Windows NT
environment. VC++ is so cool!
Originally posted by: Mladen
How can I get port statistics (trasmit and recived bytes) from RAS.
I try with RASSAPI.LIB but VC 5 can't link it.
If anybody have similar source I be very gratifull if you contact me.
Originally posted by: BaNaNa
I also want to create the application similar to dial-up network at the Windows has. If anybody have this source code, please tell me.
ReplyOriginally posted by: Kamal Mortoza
After performing the RasHangup() - either sleep about 30 secs,
or use the preferred method... which is to call
this is what MSDN98 said...and the method I use.
An application should not call RasHangUp and then immediately exit. The connection state machine needs time to properly terminate. If the system prematurely terminates the state machine, the state machine may fail to properly close a port, leaving the port in an inconsistent state. A simple way to avoid this problem is to call Sleep(3000) after returning from RasHangUp; after that pause, the application can exit. A more responsive way to avoid the problem is, after returning from RasHangUp, to call RasGetConnectStatus(hrasconn) and Sleep(0) in a loop until RasGetConnectStatus returns ERROR_INVALID_HANDLE.
Kamal
ReplyOriginally posted by: jarek
I do not know for shure but i cant get it to work in WIN98?
I quote VC help (Windows 95 does not provide RAS server support)
Originally posted by: sreenath chinnala
I need to access dialup network through vc++ for various phone numbers
How can I code to simulate the dialup network, and the dialup trials should be automatic until success or
Please help me
sreenath
hi,
at the runtime given by the user,
the maximum no of trials chosen.
thanks in advance,