>Thanks for the info... This will definitely help me determine what is happening. Also, since I have VS 6, I now know where to look for the information next time. :-)
>
Hi Patric,
Since Ed's already given you the details on the error codes. Perhaps, I can suggest a solution for the device not ready. I haven't tested this to see if it applies, but...
DECLARE INTEGER SetErrorMode IN Win32API;
INTEGER fuErrorMode
lnoldmode = SetErrorMode(1)
= SetErrorMode(lnoldmode)
From what you describe, a brief pause in execution, either by a short loop or a call to the Sleep() function, then a retry might do the trick.
I think that the other error might be caused by an invalid user name, rather than bad password. I think that might generate an ERROR_INVALID_PASSWORD error rather than a login failure.
hth,
George
Ubi caritas et amor, deus ibi est