>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