Hi. We have an assignment in which we have to implement a printer spooler using linked lists. I have used the list from STL to implement everything. I can get the program to send the print command and maintain status of documents. The problem is I don't know how to mimic/send a dummy print command so the document gets printed. If I use Sleep() there is a delay in the whole program.while I want printing on backhand and others users to have access to the program.
Any help will be appreciated regarding my problem thanks.
The problem is I don't know how to mimic/send a dummy print command so the document gets printed.
Print something right now and tell me that's what happens. The standard prints spooler doesn't wait for your document to be printed, once it sends the document to the printer it forgets about it. Some manufacturer specific ones will accept an error code back from the printer if something goes wrong but that isn't actually part of the spec so it doesn't have to do that.