Hi Vladimir
>Take a look at
http://www.news2news.com/vfp/?example=347&ver=wmiAny idea why the following DECLARE (rather the IF condition fails and WinAPI message is displayed) work in the VFP IDE and fail in the .exe on the Win2K computer. On the other hand the .exe works very well on a W98 machine.
DECLARE INTEGER GetAdaptersInfo IN iphlpapi ;
STRING @pAdapterInfo, LONG @pOutBufLen
...
IF GetAdaptersInfo(@lcBuffer, @lnBufsize) <> 0
=MESSAGEBOX('WinAPI problem - GetAdaptorsInfo')
RETURN
ENDIF
Thanks.