Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DialUp Connection
Message
From
03/02/2000 15:36:10
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00326866
Message ID:
00326917
Views:
21
>Can somebody please tell me how to make dialup connection to internet directly from Fox Pro ????
>Thanks

There are several ways of doing this, depending on how much control you need overthe DUN session. If you only need to initate the session, you can use:

DECLARE INTEGER InternetAttemptConnect IN WinInet.dll INTEGER

?InternetAttemptConnect(0)

this initiates the default network connection, whether its RAS, LAN, or whatever, and waits until the connection is established before returning control.

If you need to be able to hang up the session afterwards, then you need a session handle, the above method won't work. You can download wwIPStuff from www.west-wind.com, and use its RAS functions, or check out Christof Lange's Structure class from here in the files section for examples of how to do all of this yourself using the Windows API.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform