Software Archive
Read-only legacy content
17060 Discussions

DLL Error in PRINTDLG

jcbreeding
Beginner
659 Views
While running the 'Forprint' sample program, I get the DELL error "Initialization of the dynamic link library I:WINNTSystem32spoolDRIVERSW32X862hpbfff0.dll failed. The process is terminating abnormally."

This occurs in the function "Print_Unit' in the Fortran_Winprint' module at the line Last_Error = PrintDlg (PRINTDLG_Strut)'. Last_Error returns a value of one. The program still works, i.e. the print dialog box pops up, I can select a printer and I still get the file printed. The problem is that I am using a version of this routine in one of my codes and this error later causes my code to lock up and reject any keyboard input after the document is printed. I only see this error when I am in debug mode.

I am running Visual Fortran 6.5A on a Pentium II with NT 4 Service Pack 6. What is causing this error and how do I get rid of it?

Jim Breeding
0 Kudos
2 Replies
Steven_L_Intel1
Employee
659 Views
Looks like a bug in your HP printer driver. At this point, you're calling into the Win32 API, so CVF is out of the picture. I've run this program on HP printers, so it's not generic. Try getting a more recent printer driver and see if that helps.

Steve
0 Kudos
jcbreeding
Beginner
659 Views
I installed the latest drivers from HP. I am still getting the same error.
0 Kudos
Reply