This message means that GetDesktopWindow() API function wasn't declared or maybe declaration was cleared by CLEAR DLLS command. Make sure that DECLARE INTEGER GetDesktopWindow IN Win32api is issued before the call to GetDesktopWindow() .
>I have implemented the FAQ #7855 on how to print the screen to the printer. I located and installed DIPAPI32.DLL in the current directory, and followed the instructions on where to place the code. It works terrific, both when run from the main PRG file and from the compiled EXE file on my computer. However when a client runs it on a computer which does not have Foxpro installed using the compiled version of the application, clicking the PrintScreen button gives the error message "File 'getdesktopwindow.prg' does not exist". The user has the DLL file in his current directory, but I have not included this in the project.
>
>Any assistance would be appreciated.
--sb--