Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Call Windows Dial-up form
Message
De
17/07/2001 18:20:47
 
 
À
17/07/2001 18:07:02
Peter Wagner
Point Informática Ltda.
Limeira, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00531781
Message ID:
00531788
Vues:
10
>I found this way to call the Dial-up form from Win2000
>to make a RAS connection from inside VFP.
>
>!/n RasPhone x /Dial name_of_connection
>
>Could someone tell me a way to do the same on Win98 ?
>
>Thanks in Advance
>
>Peter


Hello
DECLARE INTEGER InternetDial IN WinInet ;
 INTEGER nHandle, STRING @lpcDialUp, INTEGER nAccessType, INTEGER @nConnect_Handle, ;
 INTEGER nFlags

Then:
PROCEDURE DialUp
 LPARAMETERS NumeConexiune,Indicator
 LOCAL rezultat, idconexiune, idfereastra
 idconexiune = 0
 idfereastra = 0
 
 IF TYPE("NumeConexiune") != "C" OR ;
   TYPE("Indicator") != "N"
  RETURN -1
 ENDIF
 
 IF LEN(ALLTRIM(NumeConexiune)) = 0
  RETURN -1
 ENDIF
 

 rezultat = InternetDial(idFereastra, @NumeConexiune, indicator, @idconexiune, 0)
 
 RETURN idconexiune
ENDPROC
The NumeConexiune variable contains the name of the dial-up connection, as defined in DialUp Networking.

Hope this helps
Grigore Dolghin
Class Software.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform