Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help using RasDial Please
Message
From
21/04/1998 11:40:06
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00093622
Message ID:
00093678
Views:
45
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform