>Is there a list somewhere that will describe the different error messages returned by GetLastError?
>
>The error returned to me after trying:
>
>? CopyFile("c:\temp\rodd.txt","LPT1:",0)
>
>was 87. I need to figure out what that actually means. Can you point me in the right direction.
87 is an incorrect parameter; my guess is that CopyFile() is not recognizing the LPT1: device name. Try popping a DOS box and using SET to see what's defined to the OS.