>First idea: in the DECLARE command the correct sintax is "string @" and not "@string".
Thanks for the advice on the right syntax.
However, after having made more test, I think we don't have to use the @.
So, I tried this syntax:
DECLARE INTEGER WNetAddConnection2 IN Win32API AS AddNetConnect;
STRING, STRING, STRING, INTEGER
Now, it seems to work better, however I now have error 487 as someone else had a while ago when trying to make this work. But, I can't seem to find the related error message to this error number nor to any other error number. I don't think this is in WIN32API.HLP. Is there any other reference document for this relation?
Thanks.