You cannot just copy winspool.drv from WinXP to WIn98 and expect it to work. I don't think you can do anything about this problem under WIn98.
>finaly i realize that it is not a problem of code but of OS.
>the code works well with W2000 and XP but not with W98. this is due, for me, of the winspool.drv library file called by GetJob function (different file size from W98 to XP).
>So i tried simply to copy the winspool.drv of XP on W98. after this operation, i could not use VFP because of an error (vfp6fr.dll is not valid or corrupted).
>what can i do else ?
>
>here is the code
<snip>
--sb--