How do I programatically print a pdf file to a printer without using any commercial third party libraries?
I am using bloodshed with mingw in WinXP.
I tried using the windows ShellExecute function with the print verb. It works, but delete function, which is after my printing function, is invoked before the file is printed. So by the time the file is actually being printed, it is being deleted already. I can put in Sleep function in between, but this will vary with diff files of diff file sizes.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
there are MANY ways to accomplish something like this, however why don't you simply use the Win32 spooling service, so that it doesn't matter anymore whether your original file exists or not?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How do I programatically print a pdf file to a printer without using any commercial third party libraries?
I am using bloodshed with mingw in WinXP.
I tried using the windows ShellExecute function with the print verb. It works, but delete function, which is after my printing function, is invoked before the file is printed. So by the time the file is actually being printed, it is being deleted already. I can put in Sleep function in between, but this will vary with diff files of diff file sizes.
Maybe because I dont know a single thing about it. But thanks for the tip. Its a starting point. Where would i begin to read about this?
there are MANY ways to accomplish something like this, however why don't you simply use the Win32 spooling service, so that it doesn't matter anymore whether your original file exists or not?