Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help using RasDial Please
Message
De
21/04/1998 11:40:06
 
 
À
21/04/1998 11:15:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00093622
Message ID:
00093678
Vues:
46
>Hi Alexander
>
>Thanks for the reply.
>
>It still doesn't work though - Are we perhaps doing something wrong with our INT to Word conversion - perhaps because it should be a double word. Do we need to add CHR(0) to the front or end of the return string - also does the length of the structure include the dword ??
>
>TIA

Don't need to add chr(0).

Try to define RasDial function as:

DECLARE INTEGER RasDial IN rasapi32.dll LONG, ;
LONG, ;
STRING @, ;
INTEGER, ;
LONG, ;
STRING @ <--------------- TO PASS PARAMETER AS STRING
...
lcRASComm = repl( chr(0), 4)
...
? RasDial( lcDialExt, ;
lcPhoneBook, ;
@x, ;
lnNotifierType, ;
lcNotifier, ;
@lcRASComm)

Create function to convert STRING to INTEGER so as ConvertStrToInt()
and ...

lnRASComm = ConvertStrToInt(lcRASComm)


Alexander Grigorjev
Alex
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform