>Klas,
>I have tested this code with VFP 3 running on NT and had no problems doing multiple screen prints. What operating system are you using? If you are using Window 3.1 with Win32S it might be the problem. Win32S does not support the full Win32 API.
>
>You might want to try the 16 bit version of the DLL. It is available from MS as part of the WinCap sample.
>
http://support.microsoft.com/support/kb/articles/q97/1/93.asp Thanks for your answer Steven,
I tried the printing on a number of machines yesterday and it works just fine on WinNT machines, but I get the VFP general program failure in GDI.EXE when printing from Win95.
It is rather frustrating that is does not work, as I have to have this function in the program.
(using VFP 3.0 for Win & Mac)