When testing PDF-Converter 3.0 "Evaluation Version Developer Pro 3.0" on Windows XP I get the Message "Printer not activated, error code -30".
Here is a code snippet showing the logical programm-flow:
...
DriverInit
...
hdc = CreateDC
xxx -> see below
EnablePrinter
(SetMapMode)
(SetTextAlign)
StartDoc
-> Activation Error - Printer not activated, error code -30
...
+ When inserting "GetSaveFileName" at Position xxx, which displays a window to let the user choose the filename, everything works fine.
+ When using at the same place a fixed filename, we get the "Printer not activated..."-Message.
+ When using a fixed filename and additionally inserting the command "_sleep(1000)" it also works fine.
+ Tests showed us that _sleep >= 700 works fine, everything shorter produces the above error.
Can't be really a timeout error (as "-30" indicates)!?
Any ideas how to solve the problem? Using sleep is not really a professional solution.
Regards,
Helmut Schierer