Link to home
Start Free TrialLog in
Avatar of mco
mco

asked on

StartDocPrinter fails with strange errno

(This is not an MFC question, rather a WIN32 API question, I couldn't find a more relevant topic).

I am using the StartDocPrinter() API to print a text document.
Everything works great on the PCs at work.
Printing failed at a customer site.
It turns out that StartDocPrinter() failed (returned 0).
The errno returned by GetLast Error was once 32 ("The process cannot access the file because it is being used by another process. ") and twice  1722 ("The RPC server is unavailable. ").
Can anybody tell me what the problem might be.
(The OS used is W2000)
Thanks you
ASKER CERTIFIED SOLUTION
Avatar of Roshan Davis
Roshan Davis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mco
mco

ASKER

Sorry, it was a bug on my side at the end.
Please finalize this.
Moondancer - EE Moderator