PDA

View Full Version : Win API - Common print dialog and Wisk


delie
12-17-2003, 02:31 PM
Hello

I wrote a subroutine that calls the WinAPI Printdlg function to display the Windows common print dialog box.

When I include and call this subroutine in a "console" application, everything works fine.

If I call this subroutine in a "wisk" application, then I get the new Windows 2000/XP "Print Property Sheet" displayed instead. Note that at compilation, a Windows 2000 system is used. The 'Wisk program' still works fine on a Windows 2000 PC, but not on a Windows 95 system since the "Print Property Sheet" does not exist in W95.

Besides getting the full Winteracter package, does anyone know how to avoid displaying the W2000 "Print Property Sheet" when a call to the "common print dialog box" is made ?

Thank you

tzeis
12-17-2003, 04:56 PM
I would say the best possibility of successfully using the PrintDLG function on all systems would be to link it on the least capable system. The older functions should work on newer OS's, but the reverse is not true.

delie
12-19-2003, 06:09 PM
Hello, I resolved my problem.

I was the problem. I was simply calling the API prindlg function with invalid Win95 settings for the prindlg structure.